diff options
author | Kevin Pilch <kevinpi@microsoft.com> | 2020-09-10 07:10:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-10 07:10:39 +0300 |
commit | d7c1d51b4a67df1ff8a141ca7040864ae86feb4d (patch) | |
tree | 08c09202333c45286c6ed99e202793574b94270a /startvs.cmd | |
parent | 8e299232e39b7b656c1d224d2d29805c905c96e3 (diff) |
Use VS from env if specified (#25749)
Diffstat (limited to 'startvs.cmd')
-rw-r--r-- | startvs.cmd | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/startvs.cmd b/startvs.cmd index c9613224fc..b3572e9748 100644 --- a/startvs.cmd +++ b/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%" +) |