views:

47

answers:

2

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

A: 

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.

ManojTrek
NO im not using CCnET, I am using MSBuild using Visual studio instead of command line
alice7
+1  A: 

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

alt text

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.

madgnome
I wanted to use using Visual studio instead of command line
alice7
madgnome is showing you how to use Visual Studio.
Anonymous Type