title: Unable to compile web project with sub-web-projects with MSBuild
body: <p>I'm trying to compile a web project solution using MSBuild which has other web-projects as sub-folders, and can't get around the problem:</p>
  
  <pre><code>ASPCONFIG: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.
  </code></pre>
  
  <p>I have created a site in IIS and created virtual directories (as it suggests) for all sub-folders which are also web projects, and it now compiles in VS2010, but still get this for the root project when using MSBuild (the aspnet_compiler.exe).</p>
  
  <p>Is there a way I can see how this works in VS so I can use that command-line?</p>