Skip to content

Commit d7c1d51

Browse files
authored
Use VS from env if specified (dotnet#25749)
1 parent 8e29923 commit d7c1d51

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

startvs.cmd

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@ IF NOT EXIST "%DOTNET_ROOT%\dotnet.exe" (
2727
exit /b 1
2828
)
2929

30-
start "" "%sln%"
30+
IF "%VSINSTALLDIR%" == "" (
31+
start "" "%sln%"
32+
) else (
33+
"%VSINSTALLDIR%\Common7\IDE\devenv.com" "%sln%"
34+
)

0 commit comments

Comments
 (0)