I’m trying to update my build system for MSBuild (which includes C#, Visual Basic, and Visual C++) but something I’ve found is that error messages are reported like this:
File.cs(10,33): error CS1043: { or ; expected [C:\absolute\path\to\the\project\building\it.csproj]
The file isn’t actually relative to the main build script that kicked off the build.
I could handle the whole thing by calculating the file’s relative path based on the project that owns it, but it means I’d need a programmatic way to intercept the errors and do that - it can’t be just a file_regex.
This is somewhat (but not totally) related to the ongoing desire to have named captures for the file_regex to handle messages that are reported out-of-order.
Any way to do this today?