Send mail to the author(s)

October 25, 2007

HOWTO: Force MSBuild into "Visual Studio" output mode

Are you swamped by the output from your MSBuild runs? Would you like to see exactly the same minimal output on the command line as you get when compiling inside Visual Studio? You can and it's easy! The trick here is to set the correct verbosity level for the output from MSBuild. It's as simple as passing /verbosity:minimal (or /v:m for the true minimalist).

You can also set this up as default behavior by adding it to MSBuild.rsp (you can find this at %WINDIR%\Microsoft.Net\Framework\v2.0.50727\MSBuild.rsp). Command-line options added to MSBuild.rsp will be processed before any options you manually specify, so you can override your own defaults if need be.