The current status of StyleCop on Visual Studio 2017

Posted: (EET/GMT+2)

 

StyleCop is a Microsoft-originated Visual Studio extension that can analyze and report C# coding errors and suggest code improvements based on a static ruleset. This feature has been available originally in Visual Studio's higher editions, but is today also available as a free extension to Visual Studio. Style rule violations are shown in Visual Studio's Error List window, and can also be manually requested.

Now that Visual Studio 2017 is available, the C# compiler (along with the Visual Basic compiler) is now based on the .NET Compiler Platform, aka Roslyn. And with Roslyn available, the original ("Classic") StyleCop code parses is redundant.

So, if you're today looking to integrate StyleCop into your Visual Studio workflow, be sure to check out the Roslyn based analyzers. The Classic (i.e. StyleCop-based code analysis) is still available, but the newer, Roslyn based analyzers are a better choice in the future.

For more information, check the project pages in GitHub. Originally, the project was open-sources to CodePlex, but since CodePlex is being shut down, GitHub is the place to be.