dotnet / dotnet/msbuild

[BuildCheck Suggestion]: Yell at people who write directly to console

Open
#13,182 1 comment 4 reactions 0 assignees View on GitHub
Area: Analyzer Area: BuildCheck backlog BuildCheck Suggestion triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Summary

People that write to console directly in their MSBuild Tasks are bad and break downstream experiences for all users. We should be able to flag such usage directly in Tasks at a minimum.

### Background and Motivation

* https://github.com/ionide/ionide-vscode-fsharp/issues/2102
* https://github.com/microsoft/sbom-tool/issues/712

### Sample issue or antipattern that the check should be flagging

Any use of Console APIs, basically. All communication with users should come through the `Log` interfaces.

### Sample output

_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.