Fix startvs.cmd for path with space

This commit is contained in:
Kahbazi 2019-10-25 06:01:14 +03:30 committed by GitHub
parent c0161c7e77
commit e542cc4d3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ SET DOTNET_MULTILEVEL_LOOKUP=0
:: Put our local dotnet.exe on PATH first so Visual Studio knows which one to use
SET PATH=%DOTNET_ROOT%;%PATH%
SET sln=%1
SET sln=%~1
IF "%sln%"=="" (
echo Error^: Expected argument ^<SLN_FILE^>
@ -27,4 +27,4 @@ IF NOT EXIST "%DOTNET_ROOT%\dotnet.exe" (
exit /b 1
)
start %sln%
start "" "%sln%"