MSBuild Explorers Team WebLog

Color Logger Example (Posted by Charley Zhang)

Microsoft (R) Build Engine Version 2.0.40607.14

[Microsoft .NET Framework, Version 2.0.40607.14]

Copyright (C) Microsoft Corporation 2004. All rights reserved.

 

 

C:\Explorers\WindowsApplication2\WindowsApplication2\WindowsApplication2.csproj.user

Line(0,0): warning : Warning!

Target "BuildOnlySettings" in project "WindowsApplication2.csproj"

     Task "CreateProperty" ...[OK]

 

Target "GetFrameworkPaths" in project "WindowsApplication2.csproj"

     Task "GetFrameworkPath" ...[OK]

     Task "GetFrameworkSDKPath" ...[OK]

 

Target "AssignTargetPaths" in project "WindowsApplication2.csproj"

     Task "AssignTargetPath" ...[OK]

     Task "AssignTargetPath" ...[OK]

     Task "AssignTargetPath" ...[OK]

     Task "AssignTargetPath" ...[OK]

     Task "AssignTargetPath" ...[OK]

     Task "CreateProperty" ...[OK]

     Task "CreateProperty" ...[OK]

 

Target "PrepareForBuild" in project "WindowsApplication2.csproj"

     Task "MakeDir" ...[OK]

 

Target "ResolveAssemblyReferences" in project "WindowsApplication2.csproj"

     Task "CreateProperty" ...[OK]

     Task "CreateItem" ...[OK]

     Task "ResolveAssemblyReference" ...[OK]

 

Target "ResolveReferences" in project "WindowsApplication2.csproj"

Target "SplitResourcesByCulture" in project "WindowsApplication2.csproj"

     Task "AssignCulture" ...[OK]

     Task "CreateItem" ...[OK]

     Task "CreateItem" ...[OK]

 

Target "CreateManifestResourceNames" in project "WindowsApplication2.csproj"

     Task "CreateCSharpManifestResourceName" ...[OK]

 

Target "PrepareResourceNames" in project "WindowsApplication2.csproj"

Target "ResGen" in project "WindowsApplication2.csproj"

     Task "ResGen" ...[OK]

 

Target "PrepareResources" in project "WindowsApplication2.csproj"

Target "Compile" in project "WindowsApplication2.csproj"

Target "BuildManifests" in project "WindowsApplication2.csproj"

Target "CopyCopyLocalFilesToOutputDirectory" in project "WindowsApplication2.csproj"

     Task "Copy" ...[OK]

 

Target "CreateCopyToOutputDirectoryItems" in project "WindowsApplication2.csproj"

     Task "CreateItem" ...[OK]

 

Target "CopyCopyToOutputDirectoryFiles" in project "WindowsApplication2.csproj"

Target "CopyFilesToOutputDirectory" in project "WindowsApplication2.csproj"

     Task "Copy" ...[OK]

     Task "Delete" ...[OK]

     Task "Copy" ...[OK]

     Task "Copy" ...[OK]

     Task "Copy" ...[OK]

     Task "Copy" ...[OK]

     Task "Copy" ...[OK]

 

Target "PrepareForRun" in project "WindowsApplication2.csproj"

Target "CoreBuild" in project "WindowsApplication2.csproj"

Target "PostBuildOnSuccess" in project "WindowsApplication2.csproj"

Target "CoreBuildSucceeded" in project "WindowsApplication2.csproj"

Target "Build" in project "WindowsApplication2.csproj"

 

Done building project "WindowsApplication2.csproj".       00:00:00.2347305

 

 

 - - - Summary of Errors: 0 Errors - - -

 

 

 

 - - - Summary of Warnings: 1 Warnings - - -

Line(0,0): warning : Warning!


 

Above is an example of what the Color Logger will ouput at normal verbosity. Colors are not necessarily representative of actual colors to come.

 

In this example, I ran this by starting Command Prompt and typing:

msbuild /l:ColorLogger,C:\Explorers\ColorLogger\ColorLogger\bin\debug\ColorLogger.dll C:\Explorers\WindowsApplication2\WindowsApplication2\WindowsApplication2.csproj /noconsolelogger /v:normal

 

The basic format I use is msbuild /l:ColorLogger,<ColorLogger DLL File Address> <File Address of the Project File you want to Build> /noconsolelogger /v:<verbosity level>

 

There is an additional feature, which plays a sound when a build succeeds and another sound when a build fails. You can turn this on by typing ;SoundOn right after the ColorLogger DLL File Address. For example:

msbuild /l:ColorLogger,C:\Explorers\ColorLogger\ColorLogger\bin\debug\ColorLogger.dll;SoundOn C:\Explorers\WindowsApplication2\WindowsApplication2\WindowsApplication2.csproj /noconsolelogger /v:normal

 

If there is anything you would like to be changed or if you have any suggestions, please tell us soon.

Published Wednesday, July 14, 2004 4:37 PM by MSBuildExplorers
Filed under:

Comments

 

anon said:

Cool. Are the colors configurable?
July 14, 2004 4:52 PM
 

Charley Zhang said:

Although there are no innate settings in our Color Logger to change the colors, our Color Logger is open source. Therefore you will be able to configure the colors in the Color Logger as preferable.

Good Luck!
July 14, 2004 5:38 PM
 

Mario Goebbels said:

Looks nice. IMO something like that should be built in MSBuild as alternative status output as opposed to the current default output.
July 15, 2004 8:42 AM
 

Color Logger Example (Posted by Charley Zhang) said:

November 26, 2007 3:24 PM
Anonymous comments are disabled

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker