dotnet / dotnet/msbuild

[Feature Request]: Allow silencing Messages entirely

Open
#9,357 0 comments 0 reactions 0 assignees View on GitHub
backlog Feature Request needs-design Priority:2 triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Summary

We have flags to upgrade Warnings to Errors, and downgrade Warnings to Messages, but we do not have a way to completely silence a Message. This is a hole in our overall diagnostic-management utilities, and can be relevant for tools that are looking for certain format of message.

### Background and Motivation

See https://github.com/dotnet/sdk/pull/36329 for an example of when this would be useful. The Substrate build inspects message content and triggers errors for output that looks like an MSBuild Diagnostic, and they have no way to silence that built-in to MSBuild currently.

### Proposed Feature

```xml
list;of;message;ids
```

Something similar to this.

### Alternative Designs

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.