title: Using StyleCop in Asp.net Core
body: <p>According to this <a href="https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/DotNetCli.md" rel="noreferrer">this article</a> for using StyleCop in Asp.net Core,</p>
  
  <p>1)Add the following to the dependencies section of the project.json file:</p>
  
  <pre><code> "StyleCop.Analyzers": {
    "version": "1.0.0",
    "type": "build"
  }
  </code></pre>
  
  <p>and build the project.</p>
  
  <p>2) Create <code>stylecop.json</code> and add your configuration on it, this is my <code>stylecop.json</code> content:</p>
  
  <pre><code>{
     "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
     "settings": {
       "documentationRules": {
         "documentInterfaces": true,
         "documentInternalMembers": false    
     }
    }
   }
  </code></pre>
  
  <p>3) the following under the buildOptions node in the project.json file:</p>
  
  <pre><code>  "additionalArguments": ["/additionalfile:path/to/stylecop.json" ]
  </code></pre>
  
  <p>but i got some errors: what is the problem?</p>
  
  <p><a href="https://i.stack.imgur.com/BiNR9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BiNR9.png" alt="enter image description here"></a></p>