title: MSBuild and Debug.AspNetCompiler.TargetPath
body: <p>I have a solution that contains an ASP.NET Web Site (file-based) project. I'm currently using the following command in my build script to build the entire solution:</p>
  
  <pre><code>&lt;pathtomsbuild.exe&gt; 
       /t:rebuild /nologo 
       /p:OutputPath=..\some_dynamic_dir 
       /p:NoWarn=1685 &lt;solutionfilename&gt;
  </code></pre>
  
  <p>However, web site projects do not come with a .csproj file, and the location to which they are compiled / published is controlled within the .sln file using the property:</p>
  
  <pre><code>&lt;configuration&gt;.AspNetCompiler.TargetPath
  </code></pre>
  
  <p>Since I'm creating a dynamic output directory via my build script (so that it includes version info), I have a real problem with the fact that the default publish location for web site projects is:</p>
  
  <pre><code>&lt;solutiondir&gt;\PrecompiledWeb\&lt;NameOfProject&gt;
  </code></pre>
  
  <p>I would prefer to specify this location when I call MSBuild, but I don't see how. Any thoughts? Do I really need to resort to manually calling aspnet_compiler with my desired output path, or is there some property I can pass to msbuild?</p>