How to add support for Roslyn Analyzers(.ruleset) in Visual Studio 2017 .NET Core Projects?
In "project.json" it is configured by using buildOptions
:
"buildOptions": {
"additionalArguments": [ "/ruleset:rules.ruleset" ]
},
How to add support for Roslyn Analyzers(.ruleset) in Visual Studio 2017 .NET Core Projects?
In "project.json" it is configured by using buildOptions
:
"buildOptions": {
"additionalArguments": [ "/ruleset:rules.ruleset" ]
},
Just edit the .csproj file and add:
<PropertyGroup><CodeAnalysisRuleSet>rules.ruleset</CodeAnalysisRuleSet></PropertyGroup>
Note: path is relative to a .csproj file.
Original post here: https://www.linkedin.com/pulse/supporting-roslyn-analyzers-visual-studio-2017-net-core-jake-brandt