Skip to content

Commit 8fd55cd

Browse files
kiasynmadskristensen
authored andcommitted
Allow build with spaces in the solution path (#248)
Signed-off-by: Sam O'Connor <[email protected]>
1 parent b2e4036 commit 8fd55cd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

build/build.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
:: IMPORTANT!! npm 3.x is required to avoid long path exceptions
44

5-
if exist %~dp0..\src\WebCompiler\node\node_modules.7z goto:EOF
5+
if exist "%~dp0..\src\WebCompiler\node\node_modules.7z" goto:EOF
66

7-
if not exist %~dp0..\src\WebCompiler\node md %~dp0..\src\WebCompiler\node
7+
if not exist "%~dp0..\src\WebCompiler\node" md "%~dp0..\src\WebCompiler\node"
88

9-
pushd %~dp0..\src\WebCompiler\node
9+
pushd "%~dp0..\src\WebCompiler\node"
1010

1111
echo Installing packages...
1212
call npm install --quiet ^

src/WebCompiler/WebCompiler.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@
122122
</ItemGroup>
123123
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
124124
<PropertyGroup>
125-
<PostBuildEvent>$(SolutionDir)packages\NuGet.CommandLine.2.8.5\tools\nuget.exe pack .\msbuild\BuildWebCompiler.nuspec -Verbosity quiet</PostBuildEvent>
125+
<PostBuildEvent>"$(SolutionDir)packages\NuGet.CommandLine.2.8.5\tools\nuget.exe" pack .\msbuild\BuildWebCompiler.nuspec -Verbosity quiet</PostBuildEvent>
126126
</PropertyGroup>
127127
<PropertyGroup>
128-
<PreBuildEvent>$(SolutionDir)build\build.cmd</PreBuildEvent>
128+
<PreBuildEvent>"$(SolutionDir)build\build.cmd"</PreBuildEvent>
129129
</PropertyGroup>
130130
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
131131
Other similar extension points exist, see Microsoft.Common.targets.

0 commit comments

Comments
 (0)