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

CA2000 Use recommended dispose pattern to ensure that object created #7293

Open
YuliiaKovalova opened this issue Apr 15, 2024 · 1 comment
Open

Comments

@YuliiaKovalova
Copy link
Member

YuliiaKovalova commented Apr 15, 2024

Analyzer

Diagnostic ID: CA2000

Steps to Reproduce:
These code parts in MSBuild generates CA2000:
https://github.com/dotnet/msbuild/blob/6fec6072f0591bede57a71474ddc08b95e3e4c28/src/Build/Evaluation/IntrinsicFunctions.cs#L294
https://github.com/dotnet/msbuild/blob/0c367243662fe7923f70d4a1b55b12be8afa07b2/src/Tasks/Unzip.cs#L117

Expected Behavior:
No warning occurs.

Actual Behavior:
The warning is displayed.

@YuliiaKovalova
Copy link
Member Author

A dupe from dotnet/roslyn#73021

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

No branches or pull requests

1 participant