Browse Source

Use VS from env if specified (#25749)

Kevin Pilch 5 years ago
parent
commit
d7c1d51b4a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      startvs.cmd

+ 5 - 1
startvs.cmd

@@ -27,4 +27,8 @@ IF NOT EXIST "%DOTNET_ROOT%\dotnet.exe" (
     exit /b 1
 )
 
-start "" "%sln%"
+IF "%VSINSTALLDIR%" == "" (
+    start "" "%sln%"
+) else (
+    "%VSINSTALLDIR%\Common7\IDE\devenv.com" "%sln%"
+)