title: Running Code Analysis (FxCop > 10) on build agent without installing Visual Studio
body: <p>After FxCop 10 Microsoft stopped shipping a separate installer for FxCop.
  Officially one can currently only run code analysis (FxCop 12.0 / 14.0 / 15.0) after installing Visual Studio 2013 / 2015 / 2017.
  However, we are adamant about not installing Visual Studio on the build agents (the installation needs then to be kept in-sync with what we have got on the developer computers etc.).</p>
  
  <p>So how would i go about getting FxCop 12.0 / 14.0 / 15.0 to work on a build agent, preferrably without installing anything else? I would accept adding a few binaries and msbuild files to source control, though.
  Otherwise: Is there a way to only install the FxCop stuff using Visual Studio 2013 / 2015 / 2017 installer?</p>
  
  <p>Note: we are using Teamcity as build server.</p>
  
  <h2>Answers</h2>
  
  <p>As there are multiple valid answers for specific environments and FxCop versions, I've taken the liberty of linking them here for easier access:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/a/49115418/684096">FxCop 15.0 (Visual Studio 2017)</a></li>
  <li><a href="https://stackoverflow.com/a/21731245/684096">FxCop 14.0 (Visual Studio 2015)</a></li>
  <li><a href="https://stackoverflow.com/a/32093939/684096">FxCop 12.0 (Visual Studio 2013)</a></li>
  <li><a href="https://stackoverflow.com/a/37720315/684096">SonarQube</a></li>
  </ul>