Here's how to open an active set of project rules:

From there, you can enable and disable the rules:

The path to the rule set file to be used is saved in your .csproj file under the <CodeAnalysisRuleSet>...</CodeAnalysisRuleSet> . You can link to the same rule set file from multiple projects and store the rule set with the project sources in Git / TFVC if you want all developers to use the same rule set.
source share