Reputation: 3884
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
Reputation: 49970
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
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
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