Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nbevans opened this issue Nov 15, 2022 · 1 comment · Fixed by #3123

Comments

@nbevans
Copy link

nbevans commented Nov 15, 2022

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

<PropertyGroup>
   <_TrimmerShowRedundantSuppressions>true</_TrimmerShowRedundantSuppressions>
</PropertyGroup>

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

image

@marek-safar
Copy link
Contributor

This looks like SDK integration issues.

/cc @sbomer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants