I'm getting different results running msbuild API on my dev machine vs the build machine, but I am having trouble finding why. The problem is when I run the web publishing step. The following targets are not run on the build machine:
- CopyAllFilesToSingleFolderForPackage
- WebFileSystemPublish
What do I even look for?
At first I was using the old MSBuild 4 Engine class, which also failed on my dev machine, so I switched to the new MSBuild 12 Project class.
To double check, I
<Message Text="Tools version: $(MSBuildToolsVersion)" />
<Message Text="Tools Path: $(MSBuildToolsPath)" />
Which gives
Tools version: 12.0
Tools Path: C:\Program Files (x86)\MSBuild\12.0\bin
So I don't even know what else to check - I don't see why they would be different. I'm going to check for VS 2013 updates or something.
Oh, and here's how I'm calling this msbuild in the script:
<MSBuild Projects="MyProject.csproj" Properties="Configuration=$(Configuration);Platform=$(Platform);DeployOnBuild=true;PublishProfile=Deploy"/>