You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The analyzer fixes of Microsoft.CodeAnalysis.NetAnalyzers can no longer be applied to the whole solution.
When I choose "Solution" in the fix menu, the fix is only applied to one project in the solution, just as if I would have chosen "Project" in the fix menu.
This is rather problematic when you have a lot of RS00XX warnings and a big solution. This situation comes up more often than not, because sometimes you need to start from scratch in a solution with completely emptied PublicAPI.Unshipped.txt and PublicAPI.Shipped.txt files.
Apply a fix for any RS0016 warning choosing "Solution" as the target.
Expected behavior
All RS0016 warnings in the whole solution are fixed (PublicAPI.Unshipped.txt in both MyClassLibrary1 and MyClassLibrary2 contain the API entries).
Actual behavior
Only RS0016 warnings of one project in the solution are fixed (only PublicAPI.Unshipped.txt in MyClassLibrary1 or MyClassLibrary2 contain the API entries).
Additional context
Microsoft Visual Studio Enterprise 2022 (64-bit) - Current
Version 17.11.1
.NET SDK 8.0.400
The text was updated successfully, but these errors were encountered:
Analyzer
Diagnostic ID: RS0016:
Add public types and members to the declared API
(and other RS00XX analyzers seem to be affected to)Analyzer source
NuGet Package: Microsoft.CodeAnalysis.NetAnalyzers
Version: 3.11.0-beta1.24324.1
Describe the bug
The analyzer fixes of Microsoft.CodeAnalysis.NetAnalyzers can no longer be applied to the whole solution.
When I choose "Solution" in the fix menu, the fix is only applied to one project in the solution, just as if I would have chosen "Project" in the fix menu.
This is rather problematic when you have a lot of RS00XX warnings and a big solution. This situation comes up more often than not, because sometimes you need to start from scratch in a solution with completely emptied
PublicAPI.Unshipped.txt
andPublicAPI.Shipped.txt
files.Steps To Reproduce
Expected behavior
All RS0016 warnings in the whole solution are fixed (
PublicAPI.Unshipped.txt
in bothMyClassLibrary1
andMyClassLibrary2
contain the API entries).Actual behavior
Only RS0016 warnings of one project in the solution are fixed (only
PublicAPI.Unshipped.txt
inMyClassLibrary1
orMyClassLibrary2
contain the API entries).Additional context
Microsoft Visual Studio Enterprise 2022 (64-bit) - Current
Version 17.11.1
.NET SDK 8.0.400
The text was updated successfully, but these errors were encountered: