Using msbuild to execute a File System Publish Profile

后端 未结 7 1764
萌比男神i
萌比男神i 2020-11-28 06:09

I have a c# .Net 4.0 project created with VS2010 and now being accessed with VS2012.

I\'m trying to publish only the needed files from this website to a destination

7条回答
  •  清酒与你
    2020-11-28 06:38

    FYI: I had the same issue with Visual Studio 2015. After many of hours trying, I can now do msbuild myproject.csproj /p:DeployOnBuild=true /p:PublishProfile=myprofile.

    I had to edit my .csproj file to get it working. It contained a line like this:

    
    

    I changed this line as follows:

    
    

    (I changed 10.0 to 14.0, not sure whether this was necessary. But I definitely had to remove the condition part.)

提交回复
热议问题