title: Visual Studio Code Analysis: CA0001 Error Running Code Analysis - object reference not set to an instance of an object
body: <p>For a WPF application being developed in VS 2012 (Ultimate), the application runs fine when a particular project's code analysis is disabled. Enabling it results in the error above.</p>
  
  <p>This was working fine until recently (i.e. running with code analysis enabled for the particular project) and the only recent change I can think of is removing NHibernate Profiler (using NuGet).</p>
  
  <p>Will be grateful for any pointers on how to debug this, or to see a more detailed log/error message.</p>