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

Disable nullable warnings on .NET Standard and Framework #10677

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

333fred
Copy link
Member

@333fred 333fred commented Jul 26, 2024

Those platforms do not have nullable-annotated BCLs, so things like Debug.Assert do not work as expected and cause spurious warnings. This is the same approach that Roslyn takes: https://github.com/dotnet/roslyn/blob/main/eng/targets/Imports.targets#L35-L42.

@333fred 333fred requested review from a team July 26, 2024 21:28
Those platforms do not have nullable-annotated BCLs, so things like `Debug.Assert` do not work as expected and cause spurious warnings. This is the same approach that Roslyn takes: https://github.com/dotnet/roslyn/blob/main/eng/targets/Imports.targets#L35-L42.
@333fred 333fred force-pushed the disable-nullable-framework branch from 96cd8ce to 6d7aafd Compare July 26, 2024 21:34
@333fred 333fred merged commit 6cf6203 into dotnet:main Jul 26, 2024
12 checks passed
@333fred 333fred deleted the disable-nullable-framework branch July 26, 2024 22:08
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jul 26, 2024
333fred added a commit to 333fred/razor that referenced this pull request Jul 27, 2024
Those platforms do not have nullable-annotated BCLs, so things like `Debug.Assert` do not work as expected and cause spurious warnings. This is the same approach that Roslyn takes: https://github.com/dotnet/roslyn/blob/main/eng/targets/Imports.targets#L35-L42.

(cherry picked from commit 6cf6203)
333fred added a commit to 333fred/razor that referenced this pull request Jul 29, 2024
* upstream/main:
  Disable nullable warnings on .NET Standard and Framework (dotnet#10677)
@RikkiGibson RikkiGibson modified the milestones: Next, 17.12 Preview 1 Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants