Skip to content

The SDK should suppress strong-name checking (CS8002) when targeting .NET TFMs #51168

@baronfel

Description

@baronfel

Is your feature request related to a problem? Please describe.

The CS8002 warning (referenced assembly doesn't have a strong name) is irrelevant on modern .NET runtimes - all such checks have been removed from the runtime. As a result any such diagnostics are noise to users.

Describe the solution you'd like

The SDK should detect when C# is the project language and the TFM is a .NET Core TFM and append CS8002 to the existing NoWarn list if able in its MSBuild Targets.

Additional context

Related to dotnet/roslyn#76197.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions