Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to have MSBuild quiet output but with error/warning summary

I'm simply trying to get no output from a build except the error/warning summary at the end. Not exactly a demanding task.

The command line:

msbuild.exe /nologo /verbosity:quiet /consoleloggerparameters:summary project.sln 

As described here: http://msdn.microsoft.com/en-us/library/ms164311.aspx It appears MSBuild isn't working as it should - there is no output at all. with /verbosity:normal there is tonnes of output and a useful error/warning summary at the end, is there any way of just not seeing the noise?

MSBuild reports version 12.0.21005.1 as distributed with Studio Express 2013.

like image 994
0xDEADBEEF Avatar asked Aug 29 '14 09:08

0xDEADBEEF


People also ask

How do I turn off MSBuild warnings?

Disable the warning in project properties (in 'Project properties' go to Project properties -> Build > "Errors and warnings" (section), Suppress Warnings (textbox), add 1591 (comma separated list)). By default it will change Active Configuration, consider to change configuration to All.

How do I run MSBuild manually?

To run MSBuild at a command prompt, pass a project file to MSBuild.exe, together with the appropriate command-line options. Command-line options let you set properties, execute specific targets, and set other options that control the build process.

How do I create a solution using MSBuild command line?

To build a specific target of a specific project in a solution. At the command line, type MSBuild.exe <SolutionName>. sln , where <SolutionName> corresponds to the file name of the solution that contains the target that you want to execute.


1 Answers

late to the party, but MSBuild has the option /verbosity:quiet now and it doesn't print out anything beside error and warnings.

    You can specify the following verbosity levels:      q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic] 

Documentation source: https://msdn.microsoft.com/en-us/library/ms164311.aspx

like image 169
Steve Avatar answered Oct 12 '22 23:10

Steve