ASP.NET Web Application Build Output - How do I include all deployment files?

前端 未结 9 1903
广开言路
广开言路 2021-01-20 22:01

When I build my ASP.NET web application I get a .dll file with the code for the website in it (which is great) but the website also needs all the .aspx files and friends, an

9条回答
  •  天命终不由人
    2021-01-20 22:45

    The _CopyWebApplication target on MSBuild will do exactly what you need. The catch is that only the main assembly will be copied to the bin folder and that's why a copy task is needed to also copy any other file on the bin folder.

    I was trying to post the sample script as part of this post but wasn't able to.

    Please take a look at this article on my blog that describes how to create a MSBuild script similar to the one you need.

提交回复
热议问题