-
Couldn't load subscription status.
- Fork 5.2k
Description
When turning on ILC's detailed error output (TrimmerSingleWarn=false), we get an output line per IL error which is great. But there's two tweaks I'd like to request:
- Format the error output to align with MSBuild's error output.
Our build system filters output to errors of a particular format. It looks for almost all of the formats in https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-diagnostic-format-for-tasks?view=vs-2022, but it expects the (line) or (line,col) for the origin. Thus, my request is that the IL errors be formatted not like:
ILC error IL1005: ...
But instead like:
ILC(0): error IL1005: ...
- Provide the originating assembly for errors like IL1005
When we get IL1005 the message is only the originating namespace and method, but not the assembly. Especially in cases like C#/WinRT which generate source into your assembly in the same namespace, this leaves me hunting around for which assembly is having the problem. E.g.:
ILC error IL1005: WinRT.AuthoringMetadataTypeInitializer.GetMetadataTypeMapping(Type): Method will always throw because: Failed to load type 'X' from assembly 'Y'
If we could just add the originating assembly here, that would help a lot:
ILC error IL1005: AssemblyZZZ!WinRT.AuthoringMetadataTypeInitializer.GetMetadataTypeMapping(Type): Method will always throw because: Failed to load type 'X' from assembly 'Y'
Metadata
Metadata
Assignees
Labels
Type
Projects
Status