i am currently buildinng a Release web site from one VS2013 solution and using Publish Web to load it to a production hosted server. i would also like to use this same solution to deploy to a Debug site on a prodution server. however, there are many web
pages that i need to include/exclude before i deploy to the Debug site. i then need to re-include/exclude those same files to use again on the Release site.
is there a better way to include/exclude various solution files during each build process?
is there a better way to include/exclude various solution files during each build process?
Thanks for your feedback.
For this issue, right click on the file you want to exclude, choose Property.
Build Action -> None:
The file is not included in the project output group and is not compiled in the build process. An example is a text file that contains documentation, such as a Readme file.
Copy to output Directory - > Do not copy
If you have any concern, please let me know.
Best regards
Angie Xu
buildpublish
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
thank you, but i am not sure how the suggestion will work for me, i may be missing something about the build process.
an example of my problem...suppose i have a file ProductPageForTesting.aspx in my solution. sometimes i want this file in the build using Publish Web, and sometimes i do not. but in my case, i have 25 or so of these files. having to include/exclude all
these files everytime i switch between Debug and Release builds is very time consuming.
is there a build file i can edit for each case, Debug and Release. (i am looking for something similar to the xdt transformation method used with web.config files.)
If you just want to excluding files and folders via the Web Application’s project file, here are the steps to follow in order to exclude specific file(s) and/or folder(s) from packaging and/or publishing:
Open the web application project file (.csproj or .vbproj) in an editor or from within Visual Studio itself.
Add an <ExcludeFilesFromDeployment> and/or <ExcludeFoldersFromDeployment> element in the desired
<PropertyGroup> element.
Save the project file
Reload the project
Build your Deployment Package or Publish Web …
If you have any concern, please let me know.
Best regards
Angie Xu
buildpublish
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
that was exactly what i was looking for, thanks very much! i searched all over but never found this topic in msdn.
Glad that it helps you.
philos
is there a library or reference list with descriptions and examples of all the options that can be used in the .vbproj file?
For this issue, I don't think I can give precise answer for it, it depends on your VB.net project type in Visual Studio, you can check your library or reference list in your VS.
Best regards
Angie
buildpublish
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
16 Points
73 Posts
building Debug and Release web sites using same solution
Mar 19, 2014 01:52 AM|philos|LINK
hello,
i am currently buildinng a Release web site from one VS2013 solution and using Publish Web to load it to a production hosted server. i would also like to use this same solution to deploy to a Debug site on a prodution server. however, there are many web pages that i need to include/exclude before i deploy to the Debug site. i then need to re-include/exclude those same files to use again on the Release site.
is there a better way to include/exclude various solution files during each build process?
thanks!
build publish
All-Star
32817 Points
3815 Posts
Re: building Debug and Release web sites using same solution
Mar 20, 2014 11:33 PM|Angie xu - MSFT|LINK
Hi philos
Thanks for your feedback.
For this issue, right click on the file you want to exclude, choose Property.
Build Action -> None:
The file is not included in the project output group and is not compiled in the build process. An example is a text file that contains documentation, such as a Readme file.
Copy to output Directory - > Do not copy
If you have any concern, please let me know.
Best regards
Angie Xu
build publish
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
16 Points
73 Posts
Re: building Debug and Release web sites using same solution
Mar 21, 2014 03:00 AM|philos|LINK
thank you, but i am not sure how the suggestion will work for me, i may be missing something about the build process.
an example of my problem...suppose i have a file ProductPageForTesting.aspx in my solution. sometimes i want this file in the build using Publish Web, and sometimes i do not. but in my case, i have 25 or so of these files. having to include/exclude all these files everytime i switch between Debug and Release builds is very time consuming.
is there a build file i can edit for each case, Debug and Release. (i am looking for something similar to the xdt transformation method used with web.config files.)
build publish
All-Star
32817 Points
3815 Posts
Re: building Debug and Release web sites using same solution
Mar 23, 2014 10:38 PM|Angie xu - MSFT|LINK
Hi philos
Appreciate your feedback.
If you just want to excluding files and folders via the Web Application’s project file, here are the steps to follow in order to exclude specific file(s) and/or folder(s) from packaging and/or publishing:
Excluding Specific Files / Folders
If you have any concern, please let me know.
Best regards
Angie Xu
build publish
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
16 Points
73 Posts
Re: building Debug and Release web sites using same solution
Mar 26, 2014 03:13 AM|philos|LINK
that was exactly what i was looking for, thanks very much! i searched all over but never found this topic in msdn.
is there a library or reference list with descriptions and examples of all the options that can be used in the .vbproj file?
build publish
All-Star
32817 Points
3815 Posts
Re: building Debug and Release web sites using same solution
Mar 26, 2014 10:08 PM|Angie xu - MSFT|LINK
Hi philos
Glad that it helps you.
For this issue, I don't think I can give precise answer for it, it depends on your VB.net project type in Visual Studio, you can check your library or reference list in your VS.
Best regards
Angie
build publish
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
16 Points
73 Posts
Re: building Debug and Release web sites using same solution
Mar 27, 2014 12:02 AM|philos|LINK
thank you.
build publish