The default MSBuild logger does nice color-coding of output lines in the console window - if you happen to use the default black background for console windows. I find using bl
The colors are basically hardcoded. What you can do out of the box, with MSBuild 4.0, is completely disable colors using the /clp:disableconsolecolor
option when invoking MSBuild.exe
(for more information on the /clp
option run MSBuild.exe /?
). With older MSBuild versions you can use MSBuild.exe arguments 2>&1| findstr /r ".*"
. See this answer for more details.
If you want to have different colors, you need to implement your own (console) logger, which is not too hard, and use that (/logger:
option, combined with /noconsolelogger
to turn off the default console logger).