roslynator icon indicating copy to clipboard operation
roslynator copied to clipboard

Rolsynator fix - Cant get IDExxxx rules working.

Open Pentadome opened this issue 2 years ago • 1 comments
trafficstars

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.

Pentadome avatar Mar 24 '23 12:03 Pentadome

I had to abandon using Roslynator because of this.

dialedin2014 avatar May 18 '24 14:05 dialedin2014