StyleCop / StyleCop.ReSharper

Official ReSharper extension for StyleCop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StyleCop extension listed as “incompatible” and not working with latest version of ReSharper

Infarinato opened this issue · comments

In both Visual Studio 2019 (Version 16.11.18) and 2022 (Version 17.3.1) the StyleCop extension is now listed as “incompatible” and doesn’t seem to be working with the latest version of ReSharper (2022.2.1): StyleCop rules no longer appear in the ReSharper options and are ignored by ReSharper upon refactoring. ☹

image

Could you try disabling the plugin verifier under options?

Question beside, have you ever considered moving to the StyleCop Analyzers NuGet package? StyleCop (the main project) is no longer maintained, so there's no support for new language features.

That was it, Matthias, thanks! 👍 Uninstalling the StyleCop extension, disabling the extension verifier under Options > Environment > Extension Manager and then reinstalling the extension did the trick. 😅

I wasn’t aware of StyleCop Analyzers NuGet package 😮: that looks more flexible (though quite a bit more work to set up at the start). But, more importantly, I wasn’t aware of the fact that it was the recommended approach now, and that the extension itself was being deprecated… 😐

@matkoch sorry to bother you on this thread, but one quick question. I've been using the plugin along with Stylecop.Analyzers and now with the recent version of R#, it seems "Code Cleanup" is not quite the same anymore. It won't inject default XML comments for properties/methods, file headers, etc.

Are you aware of this quirk?

@powerdude not really. Since the original project is no longer continued, the ReSharper plugin is also in a kind of "low-maintenance mode", where we only update for newer ReSharper versions. If it works, great; but if not, I really recommend looking for alternatives.

ok, thanks.

This issue should be fixed in ReSharper 2022.2.2. Disabling extension verifier is only temporary workaround to this problem.