This repository includes the Code Design Guidelines for C# used by Windows Platform Team in Plain Concepts.
With this files you could increase your code design guidelines only with a few steps.
Based on StyleCop Analyzers for the .NET Compiler Platform. This Code Design Guidelines can be modified and improved by using this guide.
We use the both solutions showed at configuration section of StyleCop Analyzers for the .NET Compiler Platform documentation: Code analysis rule set files and stylecop.json.
- Move plainconcepts.ruleset and stylecop.json to your solution root folder. If you want to use this guidelines only in a specific project, move this files to the project root folder.
-
Open your solution. Move stylecop.json to your project root like a link file (press Ctrl + Shift while moving).
-
In properties window, change BuildAction property to AdditionalFiles.
-
Install NuGet package StyleCop.Analyzers to your project.
-
Open Properties of your project and go to the Code Analysis section.
-
In the Rule Set part click in the combobox and select <Browse> option.
-
Search for the file plainconcepts.ruleset previously moved to your physical folder root.
You only need to recompile your project after installation. In output window you will see all the errors and warnings about code design guidelines.