NUnit: XSLT to convert NUnit output to MSBuild error and warning format

I want my NUnit output to be converted to the msbuild error format, so I can report this in the Visual Studio error list. I know that TestDriven.Net does the same.

Examples of the MSBuild error format:

Main.cs (17,20): warning CS0168: variable 'foo' declared, but never used C: \ dir1 \ foo.resx (2): error BC30188: pending declaration. cl: Command line warning D4024: unrecognized source file type 'foo.cs', alleged object file Error CS0006: Metadata file 'System.dll' not found.

Publish an MSBuild group blog in this format:

http://blogs.msdn.com/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx

+1
source share

Source: https://habr.com/ru/post/1344004/


All Articles