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

后端 未结 3 504
孤街浪徒
孤街浪徒 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:34

    I had this same issue in VS 2012 and eventually fixed it by doing the following to any files which needed to be copied:

    • Set the Copy to Output file property to Copy if newer
    • Set the Build Action file property to Content (or Compile if the file needs to be compiled)

提交回复
热议问题