Skip to content

Disable nullable warnings on .NET Standard and Framework#10677

Merged
333fred merged 1 commit intodotnet:mainfrom
333fred:disable-nullable-framework
Jul 26, 2024
Merged

Disable nullable warnings on .NET Standard and Framework#10677
333fred merged 1 commit intodotnet:mainfrom
333fred:disable-nullable-framework

Conversation

@333fred
Copy link
Copy Markdown
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
@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