Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Output MSBuild-friendly warnings/errors #769

Closed

Description

@sbomer

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.

Related to the larger diagnostics work: #592

Activity

  1. changed the title [-]Produce MSBuild-friendly warnings/errors[/-] [+]Output MSBuild-friendly warnings/errors[/+] on Oct 2, 2019
  2. sbomer commented on Jan 31, 2020

    @sbomer
    MemberAuthor

    Just leaving a note here that I think unresolved PreserveDependencyAttributes, among other things, should be surfaced as MSBuild warnings.

  3. added this to the .NET5.0 milestone on Mar 10, 2020
  4. modified the milestone: .NET5.0 on Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions