title: How do I have spaces in a MSBuild WebProjectOutputDir?
body: <p>I am trying to call MSBuild from a command line.  Everything was working fine when I was using a path that had no spaces, but now I have a path that has spaces and the command is failing.</p>
  
  <p>Command (works):</p>
  
  <pre><code>"C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe" 
  /t:Rebuild "C:\Projects\myProject.csproj" 
  /p:OutDir=c:\temp\deploy\funAndGames\Deployment\bin\ 
  /p:WebProjectOutputDir=c:\temp\deploy\funAndGames\Deployment\ 
  /p:Configuration=Release
  </code></pre>
  
  <p>I then added quotes and changed OutDir to OutPath (doesn't work):</p>
  
  <pre><code>"C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe" 
  /t:Rebuild "C:\Projects\myProject.csproj" 
  /p:OutPath="c:\temp\deploy\funAndGames\Deployment\bin\" 
  /p:WebProjectOutputDir="c:\temp\deploy\funAndGames\Deployment\" 
  /p:Configuration=Release
  </code></pre>
  
  <p>What I am aiming for is something like this (doesn't work):</p>
  
  <pre><code>"C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe" 
  /t:Rebuild "C:\Projects\myProject.csproj" 
  /p:OutPath="c:\temp\deploy\fun and games\Deployment\bin\" 
  /p:WebProjectOutputDir="c:\temp\deploy\fun and games\Deployment\" 
  /p:Configuration=Release
  </code></pre>
  
  <p>Any help on the syntax around OutDir/OutPath and WebProjectOutputDir with spaces?  Is it possible?  If it isn't does anyone know what the reason is (due to some Url's not having spaces type thing?)</p>