Title pretty much says it all. When I run msbuild by itself, it displays a lot of pretty colors in it’s output, that helps a lot in highlighting where the problems are. Our processes have a lot of external tasks, that haven’t made the process easy to contain in msbuild by itself (Another topic, in any case).
So, is there way to keep the colored output of msbuild within a NANT msbuild task?
No. NAnt captures MSBuild output into a text buffer, MSBuild detects that it’s not outputting to the console and disables the colouring.
Also, do you really need to use both MSBuild and NAnt? Those tools have practically 100% overlap, except that NAnt does not integrate with Visual Studio.