title: MSBUILD Generate xml documentation file for all projects in solution (without touching the projects)
body: <p>I'm trying to create the XML documentation for all the projects in the solution even when the option its not checked in the project properties (and this is the key point).</p>
  
  <p>I'm using TFS 2010 SP1 and tried with this "/p:TreatWarningsAsErrors=true /p:GenerateDocumentation=true" in the "MSBuild Arguments" field of my build definition. It doesn't generate anything.</p>
  
  <p>I also tried with /p:DocumentationFile=foo.xml, which it does work but I assuming the file gets overridden by the last compiled project, so I tried using a variable instead but with no luck, I tried with </p>
  
  <pre><code>/p:DocumentationFile=$(Project).xml,
  /p:DocumentationFile=$(localProject).xml
  /p:DocumentationFile=$(localBuildProjectItem).xml
  </code></pre>
  
  <p>Is there a way to create the XML documentation for all the projects from within MSBUILD even though the option is not checked in the project?</p>
  
  <p>PS: And yes I already see another thread similar to this but I don't want to modify the projects, that's the whole point of doing it with MSBUILD.</p>
  
  <p>Thanks for your time</p>