title: System.OutOfMemoryException when packaging/publishing Azure project
body: <p>I've been trying to package/publish my Azure project for awhile now (but to no avail). I've tried the following:</p>
  
  <ul>
  <li>Right-click -> package/publish from Visual Studio (OutOfMemoryException)</li>
  <li>CSPack (I closed it after it still kept running even after close to 2 hours)</li>
  <li>MSBuild (OutOfMemoryException)</li>
  </ul>
  
  <p>How do I circumvent this OutOfMemoryException? I'm currently running VS2012 with 12GB of RAM, so while I think the project is quite large (many, many subprojects), I'd think my machine would be able to handle it. The exception is as follows:</p>
  
  <blockquote>
    <p>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Windows
    Azure Tools\2.1\Microsoft.WindowsAzure.targets(2866, 5): error :
    Exception of type 'System.OutOfMemoryException' was thrown. [C:\Users\..\WindowsAzure.ccproj]</p>
  </blockquote>
  
  <p>It's been very frustrating, I'd be extremely grateful if anyone could offer me some friendly advice!</p>