Skip to content

Code Design Guidelines for C# used by Windows Platform Team in Plain Concepts

Notifications You must be signed in to change notification settings

WindowsPlatformTeam/code-design-guidelines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Code Design Guidelines

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.

How this works

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.

How to use

  1. 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.

Install StyleCop

  1. Open your solution. Move stylecop.json to your project root like a link file (press Ctrl + Shift while moving).

  2. In properties window, change BuildAction property to AdditionalFiles.

  3. Install NuGet package StyleCop.Analyzers to your project.

Install Code analysis rule set

  1. Open Properties of your project and go to the Code Analysis section.

  2. In the Rule Set part click in the combobox and select <Browse> option.

  3. Search for the file plainconcepts.ruleset previously moved to your physical folder root.

Analyze

You only need to recompile your project after installation. In output window you will see all the errors and warnings about code design guidelines.

About

Code Design Guidelines for C# used by Windows Platform Team in Plain Concepts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published