> dotnet add package StyleCop.Analyzers
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="StyleCop Rules" Description="Code analysis rules" ToolsVersion="14.0">
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
</Rules>
</RuleSet>
<PropertyGroup>
<CodeAnalysisRuleSet>StyleCop.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
> dotnet build
<Rule Id="SA1101" Action="None" />
Example:
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="StyleCop Rules" Description="Code analysis rules" ToolsVersion="14.0">
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
<Rule Id="SA1101" Action="None" />
</Rules>
</RuleSet>