Skip to content

Conversation

@jaredpar
Copy link
Member

No description provided.

@ghost ghost added Area-Infrastructure untriaged Request triage from a team member labels Dec 11, 2024
<!-- Avoid https://github.com/dotnet/arcade/issues/9305 -->
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
<Nullable>enable</Nullable>
<NoWarn Condition="'$(TargetFramework)' == 'net472'">$(NoWarn);Nullable</NoWarn>
Copy link
Member Author

Choose a reason for hiding this comment

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

When multi-targeting between net472 or netstandard2.0 and anything else, disable null checking on those TF. Otherwise you end up with non-sense warnings.

Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we fix this in a more central location so it applies to all projects and not just cli util?

Seems like I could just chagne my logic here that's DisableNullableWarnings to a NoWarn addition: https://github.com/dotnet/sdk/pull/45420/files#diff-50e91c82311ea26f2a73202525dfdf2b0a89c178ee666b2bf3ad4c84ac4c06dc

Copy link
Member Author

Choose a reason for hiding this comment

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

That is fine by me, I was just trying to demonstrate the way to approach this. Did small scale for that.

@jaredpar
Copy link
Member Author

@marcpopMSFT, @MiYanni

@jaredpar
Copy link
Member Author

Superseded by #45420

@jaredpar jaredpar closed this Dec 11, 2024
@akoeplinger akoeplinger deleted the dev/jaredpar/sdk branch March 18, 2025 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Infrastructure untriaged Request triage from a team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants