Adding support for the StyleCop.json configuration file in your C# projects

Posted: (EET/GMT+2)

 

StyleCop is one of my favorite code quality tools for the C# language, and the latest versions of it are based on the Roslyn (aka .NET Compiler Platform) compilers and analysis tools. The latest versions of StyleCop also supports a JSON based configuration file, which I recommend using in new applications.

With a shift towards JSON files from XML files, also for configuring applications is not now, and is well-supported in the latest .NET Core world as well.

For instructions on how to support the new StyleCop.json file in your Visual Studio 2015 and later projects, check out this instruction page.

Hope this helps!