You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Currently the linker will print a stack trace to stderr if it fails. @tlakollo changed the ILLink.Tasks stderr importance so that this will show up in msbuild logs by default: #719.
Warnings logged to stdout, for example warnings about unresolved assemblies (or in the future, linker-unfriendly patterns), should also be made visible by default. In particular we should ensure that they show up as warnings/errors in MSBuild. Since we run out-of-process from msbuild, it seems like the standard way to do this is to format messages with a prefix like "warning: message", which will cause it to be treated as an actual warning and surfaced in IDEs.
Rather than prepending such a prefix to individual messages, we should probably add a few helpers to make the intentions clear, so that the logged messages don't get altered unintentionally.
Activity
[-]Produce MSBuild-friendly warnings/errors[/-][+]Output MSBuild-friendly warnings/errors[/+]danmoseley commentedon Jan 8, 2020
definition of the format
https://docs.microsoft.com/en-us/archive/blogs/msbuild/msbuild-visual-studio-aware-error-messages-and-message-formats
or, better, from the source
https://github.com/microsoft/msbuild/blob/master/src/Shared/CanonicalError.cs
sbomer commentedon Jan 31, 2020
Just leaving a note here that I think unresolved
PreserveDependencyAttributes, among other things, should be surfaced as MSBuild warnings.