According to this article for using StyleCop in Core Asp.net,
1) Add the following to the dependencies section of the project.json file:
"StyleCop.Analyzers": { "version": "1.0.0", "type": "build" }
and build a project.
2) Create stylecop.json and add your configuration to it, this is my stylecop.json content:
{ "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", "settings": { "documentationRules": { "documentInterfaces": true, "documentInternalMembers": false } } }
3) the following in the buildOptions node file in the project.json file:
"additionalArguments": ["/additionalfile:path/to/stylecop.json" ]
but I got some errors: what is the problem?

source share