MSBuild target _CopyWebApplication does not copy all necessary files to the bin folder

后端 未结 3 503
孤街浪徒
孤街浪徒 2020-12-08 16:49

Elsewhere on the Web, you can find recommendations on using something like this to simulate the Publish feature in the VS 2005-2008 IDE from a command-line (I hope I did not

3条回答
  •  既然无缘
    2020-12-08 17:30

    This is just a workaround.

    In the build script for publishing Web sites, after running MSBuild on the Web project itself to publish it (Targets="ResolveReferences;_CopyWebApplication"), I added a copy operation:

    
    

    where ProjectBinFiles is an Item representing the files in the bin directory in the source directory, and StageBin is a Property representing the bin folder in the published site's directory. So far, it seems to work.

提交回复
热议问题