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

Fix analyzer build warnings/errors #121

Merged
merged 3 commits into from
Feb 22, 2022
Merged

Fix analyzer build warnings/errors #121

merged 3 commits into from
Feb 22, 2022

Conversation

Sergio0694
Copy link
Member

@Sergio0694 Sergio0694 commented Feb 22, 2022

@Sergio0694 Sergio0694 added build 🔥 Some changes or issues related to build infrastructure maintenance ⚙️ Some regular maintenance updates priority 🚩 An issue or change that has priority labels Feb 22, 2022
@Sergio0694 Sergio0694 marked this pull request as ready for review February 22, 2022 18:17
@@ -4,6 +4,11 @@
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0</TargetFrameworks>
</PropertyGroup>

<!-- Workaround for .NET 6.0.x regression (see https://github.com/dotnet/linker/issues/2642) -->
<PropertyGroup>
<NoWarn>AD0001</NoWarn>
Copy link

@agocke agocke Feb 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you could narrow this suppression by suppressing the analyzer warning itself, i.e. IL2026.

Actually, a more robust fix would be to temporarily disable the trim analyzers using <EnableTrimAnalyzer>false</EnableTrimAnalyzer>

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the suggestion! Done in bc6f26f 😊

@Sergio0694 Sergio0694 merged commit 3d7b45c into main Feb 22, 2022
@Sergio0694 Sergio0694 deleted the dev/fix-build-warnings branch February 22, 2022 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build 🔥 Some changes or issues related to build infrastructure maintenance ⚙️ Some regular maintenance updates priority 🚩 An issue or change that has priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants