dotnet / dotnet/linker

IL2121 being added needlessly to NoWarn and causing compiler errors on older netfx projects

Open
#3,118 1 comment 0 reactions 0 assignees View on GitHub
area-Integration: netcore
Dominant language
C#
Stars
392
Forks
128
Avg merge
2d 10h
Merged PRs (30d)
2

Description

... because older compilers don't understand a NoWarn of "IL2121" e.g. older F# and WebSharper projects.

The workaround is to add to your project MSBuild file:

```xml

<_TrimmerShowRedundantSuppressions>true

```

But really this NoWarn modification shouldn't be happening at all on projects that aren't using the Linker:

image

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.