Skip to content

Remove obsolete CS1591 warning suppression from generated file preamble#7308

Merged
evgenyfedorov2 merged 3 commits intodotnet:mainfrom
luissena:remove-cs1591-warning-suppression
Feb 17, 2026
Merged

Remove obsolete CS1591 warning suppression from generated file preamble#7308
evgenyfedorov2 merged 3 commits intodotnet:mainfrom
luissena:remove-cs1591-warning-suppression

Conversation

@luissena
Copy link
Contributor

@luissena luissena commented Feb 16, 2026

Summary

  • Removed #pragma warning disable CS1591 from GeneratorUtilities.FilePreamble
  • The suppression was compensating for dotnet/roslyn#54103, which was fixed in September 2021
  • Updated 5 verified snapshot test files to reflect the change

Fixes #6856

Microsoft Reviewers: Open in CodeFlow

The #pragma warning disable CS1591 was added to compensate for
dotnet/roslyn#54103, which was fixed in September 2021. The suppression
is no longer needed and can be safely removed.

Fixes dotnet#6856
@luissena
Copy link
Contributor Author

@dotnet-policy-service agree

@evgenyfedorov2 evgenyfedorov2 merged commit d3727f3 into dotnet:main Feb 17, 2026
6 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove warning suppression in GeneratorUtilities.cs

2 participants