title: Make an FxCop project output an XML file (it does not output anything useful) when run with fxcopcmd.exe
body: <p>When not using an FxCop project, this works:</p>
  
  <pre><code>"c:\Program Files\Microsoft FxCop 1.35\fxcopcmd.exe" /file:SiteSeeker.Core\bin\Release\SiteSeeker.Core.dll /file:SiteSeeker.CoreTest\bin\Release\SiteSeeker.CoreTest.dll /file:SiteSeeker.Example\bin\SiteSeeker.Example.dll /file:SiteSeeker.Web.WebForms\bin\Release\SiteSeeker.Web.WebForms.dll /directory:Library\NUnit\bin\net-2.0 /directory:"Library\EPiServer CMS" /directory:"Library\EPiServer CMS\5.1.422.4" /directory:"Library\EPiServer CMS\6.0.530.0" /out:FxCopResults.xml
  </code></pre>
  
  <p>When I have this FxCop project:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FxCopProject Version="1.35" Name="SiteSeeker, Release"&gt;
   &lt;ProjectOptions&gt;
    &lt;SharedProject&gt;True&lt;/SharedProject&gt;
    &lt;Stylesheet Apply="False"&gt;http://www.gotdotnet.com/team/fxcop//xsl/1.35/FxCopReport.xsl&lt;/Stylesheet&gt;
    &lt;SaveMessages&gt;
     &lt;Project Status="None" NewOnly="False" /&gt;
     &lt;Report Status="None" NewOnly="False" /&gt;
    &lt;/SaveMessages&gt;
    &lt;ProjectFile Compress="True" DefaultTargetCheck="True" DefaultRuleCheck="True" SaveByRuleGroup="" Deterministic="True" /&gt;
    &lt;EnableMultithreadedLoad&gt;True&lt;/EnableMultithreadedLoad&gt;
    &lt;EnableMultithreadedAnalysis&gt;True&lt;/EnableMultithreadedAnalysis&gt;
    &lt;SourceLookup&gt;True&lt;/SourceLookup&gt;
    &lt;AnalysisExceptionsThreshold&gt;10&lt;/AnalysisExceptionsThreshold&gt;
    &lt;RuleExceptionsThreshold&gt;1&lt;/RuleExceptionsThreshold&gt;
    &lt;Spelling Locale="en-us" /&gt;
    &lt;VersionAware&gt;False&lt;/VersionAware&gt;
    &lt;OverrideRuleVisibilities&gt;False&lt;/OverrideRuleVisibilities&gt;
    &lt;CustomDictionaries SearchFxCopDir="True" SearchUserProfile="True" SearchProjectDir="True" /&gt;
    &lt;SearchGlobalAssemblyCache&gt;False&lt;/SearchGlobalAssemblyCache&gt;
    &lt;DeadlockDetectionTimeout&gt;120&lt;/DeadlockDetectionTimeout&gt;
   &lt;/ProjectOptions&gt;
   &lt;Targets&gt;
    &lt;AssemblyReferenceDirectories&gt;
     &lt;Directory&gt;$(ProjectDir)/Library/EPiServer CMS/5.2.375.7/&lt;/Directory&gt;
     &lt;Directory&gt;$(ProjectDir)/SiteSeeker.Plugin/bin/Release/&lt;/Directory&gt;
    &lt;/AssemblyReferenceDirectories&gt;
    &lt;Target Name="$(ProjectDir)/SiteSeeker.Core/bin/Release/SiteSeeker.Core.dll" Analyze="True" AnalyzeAllChildren="True" /&gt;
    &lt;Target Name="$(ProjectDir)/SiteSeeker.CoreTest/bin/Release/SiteSeeker.CoreTest.dll" Analyze="True" AnalyzeAllChildren="True" /&gt;
    &lt;Target Name="$(ProjectDir)/SiteSeeker.Example/bin/SiteSeeker.Example.dll" Analyze="True" AnalyzeAllChildren="True" /&gt;
    &lt;Target Name="$(ProjectDir)/SiteSeeker.Web.WebForms/bin/Release/SiteSeeker.Web.WebForms.dll" Analyze="True" AnalyzeAllChildren="True" /&gt;
   &lt;/Targets&gt;
   &lt;Rules&gt;
    &lt;RuleFiles&gt;
     &lt;RuleFile Name="$(FxCopDir)\Rules\DesignRules.dll" Enabled="True" AllRulesEnabled="True" /&gt;
     &lt;RuleFile Name="$(FxCopDir)\Rules\GlobalizationRules.dll" Enabled="True" AllRulesEnabled="True" /&gt;
     &lt;RuleFile Name="$(FxCopDir)\Rules\InteroperabilityRules.dll" Enabled="True" AllRulesEnabled="True" /&gt;
     &lt;RuleFile Name="$(FxCopDir)\Rules\MobilityRules.dll" Enabled="True" AllRulesEnabled="True" /&gt;
     &lt;RuleFile Name="$(FxCopDir)\Rules\NamingRules.dll" Enabled="True" AllRulesEnabled="True" /&gt;
     &lt;RuleFile Name="$(FxCopDir)\Rules\PerformanceRules.dll" Enabled="True" AllRulesEnabled="True" /&gt;
     &lt;RuleFile Name="$(FxCopDir)\Rules\PortabilityRules.dll" Enabled="True" AllRulesEnabled="True" /&gt;
     &lt;RuleFile Name="$(FxCopDir)\Rules\SecurityRules.dll" Enabled="True" AllRulesEnabled="True" /&gt;
     &lt;RuleFile Name="$(FxCopDir)\Rules\UsageRules.dll" Enabled="True" AllRulesEnabled="True" /&gt;
    &lt;/RuleFiles&gt;
    &lt;Groups /&gt;
    &lt;Settings /&gt;
   &lt;/Rules&gt;
   &lt;FxCopReport Version="1.35" /&gt;
  &lt;/FxCopProject&gt;
  </code></pre>
  
  <p>And use this command line:</p>
  
  <pre><code>fxcopcmd.exe /project:FxCopRelease.FxCop /out:FxCopResults.xml
  </code></pre>
  
  <p>I get this output and no FxCopResults.xml is written (it still does not exist):</p>
  
  <pre><code>&gt;&gt;&gt; fxcopcmd.exe /project:FxCopRelease.FxCop /out:FxCopResults.xml
  Microsoft FxCopCmd v1.35.60623.0
  Copyright (C) 1999-2006 Microsoft Corp.  All rights reserved.
  
  Loading FxCopRelease.FxCop...
  Loaded DesignRules.dll...
  Loaded GlobalizationRules.dll...
  Loaded InteroperabilityRules.dll...
  Loaded MobilityRules.dll...
  Loaded NamingRules.dll...
  Loaded PerformanceRules.dll...
  Loaded PortabilityRules.dll...
  Loaded SecurityRules.dll...
  Loaded UsageRules.dll...
  Initializing Introspection engine...
  Analyzing...
  Analysis Complete.
  No messages written.
  Done.
  
  &gt;&gt;&gt; type FxCopResults.xml
  The system cannot find the file specified.
  </code></pre>
  
  <p>I get the same output if I use /console instead of /out.</p>
  
  <p>At first the FxCop project file got filled with errors. And I only wanted the actual settings in there. So I changed... <em>something</em>.. It might have to do with this problem. But if it is <strong>at all possible</strong> I still would like to <strong>leave my FxCop project file alone</strong> and put the <strong>resulting</strong> violations in <strong>another file</strong>.</p>