Skip to content

Disable CA2022 errors #39992

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

Merged

Conversation

NikolaMilosavljevic
Copy link
Member

Fixes: #39893

Backport of a patch from: dotnet/installer#19145

@NikolaMilosavljevic NikolaMilosavljevic requested a review from a team as a code owner April 3, 2024 16:17
@ghost ghost added Area-Infrastructure untriaged Request triage from a team member labels Apr 3, 2024
@@ -169,7 +169,9 @@ public override async Task WaitForDisconnectAsync(CancellationToken cancellation
try
{
ServerLogger.Log($"Before poking pipe {Identifier}.");
#pragma warning disable CA2022 // Avoid inexact read
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we know why this warning is not documented?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's likely new, and hyperlink doesn't resolve to a valid page. This warning started showing last week when we picked up .NET 9.0 Preview 4 SDK, in our VMR builds.

@NikolaMilosavljevic NikolaMilosavljevic merged commit eefd65a into dotnet:main Apr 3, 2024
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.

CA2022 error in RazorSdk tool source
3 participants