Wie habe ich Leerzeichen in einem MSBuild WebProjectOutputDir?

Ich versuche, MSBuild über eine Befehlszeile aufzurufen. Alles hat gut funktioniert, als ich einen Pfad ohne Leerzeichen verwendet habe, aber jetzt habe ich einen Pfad mit Leerzeichen und der Befehl schlägt fehl.

Befehl (funktioniert):

<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>

Ich habe dann Anführungszeichen hinzugefügt und OutDir in OutPath geändert (funktioniert nicht):

<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>

Was ich anstrebe, ist so etwas (funktioniert nicht):

<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>

Irgendeine Hilfe zur Syntax um OutDir / OutPath und WebProjectOutputDir mit Leerzeichen? Ist es möglich? Wenn dies nicht der Fall ist, weiß jemand, woran es liegt (weil einige URLs keine Leerzeichen enthalten?)

Antworten auf die Frage(7)

Ihre Antwort auf die Frage