randomuser
randomuser

Reputation: 109

Running StyleCopAnalyzers without building solution

I would like to use StyleCopAnalyzers https://github.com/DotNetAnalyzers/StyleCopAnalyzers to find StyleCop violations in my code. However I can't find the way to run them without building entire solution. Is that even possible?

Upvotes: 1

Views: 331

Answers (1)

yaakov
yaakov

Reputation: 5850

Have a look at the StyleCopTester project. That shows off a lot of the groundwork to run StyleCop Analyzers - and any other Roslyn Analyzer - using the Roslyn (Microsoft.CodeAnalysis) APIs.

Upvotes: 3

Related Questions