-
Notifications
You must be signed in to change notification settings - Fork 470
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
TargetFramework net7.0 disables all CAxxxx rules #6245
Comments
@znakeeye Thank you so much for reporting the issue. I have created a PR that should fix this issue once the fix flows into dotnet/sdk repo. @jmarolf Can we ensure the flow into the SDK repo happens asap? Do we need any approvals here? As a side note, I am going to enhance the tooling so such a regression does not happen in future. Our generated editorconfig files that we ship in the package should most likely include a |
Filed #6247 |
Many thanks for the fix. I actually saw this problem some months back, but went back to |
…obalconfig files Fixes dotnet#6247 Our generated globalconfig files that we ship in the analyzer NuGet packages and .NET SDK should likely include a vNext set of globalconfig files so that when the analysis level is set to latest or explicitly to vNext for upcoming .NET Release, we still find a proper mapped globalconfig file. This will avoid regressions such as dotnet#6245 in future. Verified that locally built Microsoft.CodeAnalysis.NetAnalyzers package with this change includes globalconfig files specific to 8.0 release version.
…obalconfig files Fixes dotnet#6247 Our generated globalconfig files that we ship in the analyzer NuGet packages and .NET SDK should likely include a vNext set of globalconfig files so that when the analysis level is set to latest or explicitly to vNext for upcoming .NET Release, we still find a proper mapped globalconfig file. This will avoid regressions such as dotnet#6245 in future. Verified that locally built Microsoft.CodeAnalysis.NetAnalyzers package with this change includes globalconfig files specific to 8.0 release version.
Just bumped my project to
.NET 7.0 RC2
(runningVS Version 17.4.0 Preview 6.0
), and realized that all code analysis rules are disabled, no matter the settings. Downgrading the project tonet6.0
re-enables all CAxxxx rules.Steps To Reproduce
Just create a console project with some CAxxxx violations, and target
net7.0
. No warnings are produced. Downgrade tonet6.0
to get the warnings back.Expected behavior
CAxxxx rules are checked when targeting
.NET 7
.Actual behavior
CAxxxx rules are checked only when targeting
.NET 6
or earlier.The text was updated successfully, but these errors were encountered: