alice7
alice7

Reputation: 3884

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.

Upvotes: 6

Views: 6608

Answers (2)

Julien Hoarau
Julien Hoarau

Reputation: 49970

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.

Upvotes: 14

Manoj Talreja
Manoj Talreja

Reputation: 853

What kind of Continous integration environment are you using if you using an Cruisecontrol.NET, there is a XMLLogger, which can do the trick for you. but if you want to enable logging in your MSBuild script then http://msdn.microsoft.com/en-us/library/ms171470.aspx should do the trick for you.

Upvotes: 0

Related Questions