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
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.)