Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MS build logging

How to enable logging in msbuild. My build is failing, I don't know why. Is there any property that needs to be set in the property group.

like image 748
alice7 Avatar asked May 23 '10 22:05

alice7


People also ask

How do you find the build log?

You can also generate logs by running MSBuild directly from the command line, using the -fileLogger ( -fl ) command-line option. See Obtain build logs with MSBuild.

What is MSBuild used for?

The Microsoft Build Engine is a platform for building applications. This engine, which is also known as MSBuild, provides an XML schema for a project file that controls how the build platform processes and builds software. Visual Studio uses MSBuild, but MSBuild doesn't depend on Visual Studio.

What is a build log?

A build log is an enhanced console output of a build. It is represented by a structured list of the events which took place during the build. Generally, it includes entries on TeamCity-performed actions and the output of the processes launched during the build.

Where is Visual Studio build log file?

Create a detailed log From the Visual Studio main menu, go to Tools > Options > Projects and Solutions >Build and Run.


1 Answers

Within Visual Studio

You can view the log in the Output view with Show output from: set on Build.

To configure the verbosity go to Tools > Options... > Projects and Solutions > Build and run

FileLogger

You could use the MSBuild FileLogger like that :

msbuild.exe /fileLogger 
 /fileloggerparameters:LogFile=[Path_to_log_file];Verbosity=[minimal/normal/detailed/diagnostic]

More info on MSDN.

like image 162
Julien Hoarau Avatar answered Sep 18 '22 03:09

Julien Hoarau