title: Enabling Microsoft's Code Analysis on .NET Core Projects
body: <p>Our team uses the Code Analysis feature with a custom ruleset to cause our build to fail if we forget to do things like null checks on method arguments.</p>
  
  <p>However, now as we create a new .NET Core project, it doesn't look like Code Analysis is a feature of these new projects. There is no UI for it in the Project Properties area, and adding a custom ruleset to the project <a href="https://stackoverflow.com/a/43227687/120955">as recommended here</a> only appears to affect StyleCop Analyzers (the <code>SAxxxx</code> rules).</p>
  
  <p>Is there any way to enable Code Analysis (<code>CAxxxx</code>) rules in a .NET Core project?</p>