Tuesday 10 June 2014

TIL - Clean a build from MSBuild

Version numbers were wrong on the build as Jenkins was not cleaning the build before compiling so I changed the build command to this:
msbuild solution.sln /p:Configuration=RELEASE /t:Clean;Build

Incidentally, if you want to run msbuild from PowerShell, the build targets need protecting from the shell like this:
msbuild .\solution.sln /p:Configuration=RELEASE /t:"Clean;Build"

No comments:

Post a Comment