I am running a build, and I would like to be able to view the progress as it happens. But I would also like to save the output if the build has an error.
I know I c
this answer should help you Redirect Standard Output Efficiently in .NET
PS I am never sure if linking to another answer on SO is an answer or a comment