Skip to content

Commit

Permalink
Use VS from env if specified (#25749)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilchie authored Sep 10, 2020
1 parent 8e29923 commit d7c1d51
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion startvs.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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%"
)

0 comments on commit d7c1d51

Please sign in to comment.