Formatting the output of a custom tool so I can double click an error in Visual Studio and the file opens
- by Ben Scott
I've written a command line tool that preprocesses a number of files then compiles them using CodeDom. The tool writes a copyright notice and some progress text to the standard output, then writes any errors from the compilation step using the following format:
foreach (var err in results.Errors) {
// err is CompilerError
var filename =…