Merge pull request #15392 from Kahbazi/patch-10

Fix startvs.cmd for path with space
This commit is contained in:
Doug Bunting 2019-11-09 11:55:19 -08:00 committed by GitHub
commit dbba49cc25
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%"