dotnet / dotnet/msbuild

Warning color is brown; depends on the fact that Windows console mismaps brown to yellow

Open
#14,513 5 comments 1 reaction 2 assignees Claimed by @baronfel View on GitHub
untriaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Describe the bug

Warnings are expected to be yellow, but the ANSI escape sequence is for brown

Image

Too awhile to notice because Windows has had for decades a mismapping where brown turns into yellow. But when you try it without Windows anywhere on the stack, the brown appears.

### Steps to reproduce

Have a project that has build warnings

Use lxterminal

Build the project

### Expected behavior

Warnings are yellow

### Actual behavior

Warnings are brown

### Is this a regression?

Don't think so

### Are there any workarounds?

I suppose I could use the tuner to turn the brown to yellow and mess up everybody else. But that is problematic for its own reasons.

### dotnet --info output

```console
$ dotnet --info
.NET SDK:
Version: 10.0.300
Commit: caa81fa497
Workload version: 10.0.300-manifests.930f594d
MSBuild version: 18.6.3+caa81fa49

Runtime Environment:
OS Name: debian
OS Version: 13
OS Platform: Linux
RID: linux-x64
Base Path: /usr/share/dotnet/sdk/10.0.300/

.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.

Host:
Version: 10.0.8
Architecture: x64
Commit: 94ea82652c

.NET SDKs installed:
7.0.410 [/usr/share/dotnet/sdk]
8.0.421 [/usr/share/dotnet/sdk]
10.0.300 [/usr/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.20 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.27 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.20 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.27 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set
```

### IDE version

_No response_

### Other details

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