Spaced paths, msbuild, and psake
问题 Related question here. This works properly for compiling an mvc3 application. task Compile { $config = $script:siteConfig.config exec { & "C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" $webproject_path ` /p:Configuration=$config /p:WebProjectOutputDir="$publish_dir" ` /p:Outdir="$out_dir" /p:CleanWebProjectOutputDir=False ` /T:_WPPCopyWebApplication /T:ResolveReferences /verbosity:quiet /nologo } } All of those path variables are script properties. However, when spaces are