Skip to content

Terminal Logger hides warning code NETSDK1057 from message You are using a preview version of .NET... #12081

@Frulfump

Description

@Frulfump

Issue Description

I want to see the code so I can search for it or disable it etc.

The message when turning of the Terminal Logger -tl:off Includes the target and project which is also beneficial to see.
C:\Program Files\dotnet\sdk\10.0.100-preview.5.25277.114\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(326,5): message NETSDK105
7: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [<project-name>.csproj]

Steps to Reproduce

Run dotnet build using .NET 10 SDK 10.0.100-preview.5.25277.114 (pretty sure this was the same for .NET 8 and 9 when they were in preview)

Expected Behavior

The warning code is included in the message

Actual Behavior

Only this message is shown You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy

Analysis

N/A

Versions & Configurations

➜ dotnet --info
.NET SDK:
Version: 10.0.100-preview.5.25277.114
Commit: ddf39a1b46
Workload version: 10.0.100-manifests.a07d1f1a
MSBuild version: 17.15.0-preview-25277-114+ddf39a1b4

Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.100-preview.5.25277.114\

Metadata

Metadata

Assignees

Labels

Area: Terminal LoggerProblems with the livelogger/fancylogger/terminallogger -tl functionality.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions