title: Running FxCop directly through VS project file
body: <p>I am interested in setting up FxCop to run on each of our VS .csproj files in our developing environment by calling it as a target in the .csproj file itself without creating a separate MSBuild file for the project. Is this</p>
  
  <pre><code>&lt;Target Name="AfterBuild"&gt;
     &lt;Exec Command="&amp;quot;C:\Program Files\Microsoft FxCop\FxCopCmd.exe&amp;quot; /searchgac /p:FxCopProject.fxcop /out:FxCopOutput.xml" ContinueOnError="true"&gt;
     &lt;/Exec&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>possible to get working in one way or another being included at the tail end of my .csproj file?</p>