Showing posts with label MSBuild. Show all posts
Showing posts with label MSBuild. Show all posts

Tuesday, November 13, 2012

Correctly Executing a PowerShell script from MSBuild

It took me a while to find out how to execute a PowerShell script from within an MSBuild script while propagating errors to MSBUILD. I tried several approaches, including the usual -File argument, but this is what I came up with in the end:
<Exec Command="powershell -Command &quot;&amp;{ .\Deploy.ps1 scriptArg1 scriptArg2 }&quot;" />

Friday, November 19, 2010

Wednesday, April 21, 2010

Detailed performance summary in MSBuild

Use the /ds switch to get a summary of build nodes and the projects they built, with timings.