MS build logging
How to enable logging in msbuild. My build is failing, I do开发者_如何转开发n't know why. Is there any property that needs to be set in the property group.
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.
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.
精彩评论