dotnet / roslynator

Roslynator is a set of code analysis tools for C#, powered by Roslyn.
https://josefpihrt.github.io/docs/roslynator
Other
3.09k stars 256 forks source link

Rolsynator fix - Cant get IDExxxx rules working. #1059

Open Pentadome opened 1 year ago

Pentadome commented 1 year ago

Product and Version Used:

I am try to fix IDExxxx code analysis rules. However when I try to run Roslynator.Dotnet.Cli -fix and I give the path to the visual studio analyzer assemblies, the assemblies fail to load.

Steps to Reproduce: roslynator fix "PathToSolution" -v diag --analyzer-assemblies "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\VBCSharp" --ignored-diagnostics CA1822 CA1707 API1000 --properties "NoWarn=CS8625" Actual Behavior: Cannot load assembly 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\VBCSharp\LanguageServices\Microsoft.CodeAnalysis.CSharp.dll' and hundreds of other messages like this.

All the code analysis rules that are referenced by the solution's nuget packages work, but the IDExxxx rules still don't work.

Expected Behavior: IDExxxx rules to work.

dialedin2014 commented 5 months ago

I had to abandon using Roslynator because of this.