title: Visual Studio Check In Policy in combination with .NET analyzers
body: <p>We worked before with FxCop Code Analyzers and TFS check in policies.
  I can find articles to migrate the code analysis to .Net Analyzer.
  I changed a project and the code analysis seems to be working after removing the deprecated FxCop.</p>
  <p><strong>But I cannot find any information regarding changing the check in policies to match with the new .NET Analyzers.</strong> Does anyone have information on this topic?</p>
  <p>.csproj
  true</p>
  <pre><code>&lt;AnalysisLevel&gt;none&lt;/AnalysisLevel&gt;
  &lt;CodeAnalysisRuleSet&gt;MinimumRecommendedRules.ruleset&lt;/CodeAnalysisRuleSet&gt;
  &lt;RunCodeAnalysis&gt;false&lt;/RunCodeAnalysis&gt;
  </code></pre>
  <p>Instead of a ruleset .NetAnalyzers seem to use &quot;Analysis Level&quot; which can not be configured in the checkin policies.</p>
  <p><a href="https://i.stack.imgur.com/upkPw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/upkPw.png" alt="VS Project Settings and Source Control Settings" /></a></p>
  <p>Build is working fine without errors and we get warnings due to code analysis. We tried to add a Code Ruleset in the project for the MinimumRecommendedRules.ruleset but when we check in get:</p>
  <blockquote>
  <p>An unexpected error occurred while evaluating the Code Analysis
  check-in policy. The error might be transient. Try again.</p>
  </blockquote>