-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathSetDevelopmentEnvironment.bat
20 lines (20 loc) · 1.38 KB
/
SetDevelopmentEnvironment.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
:: Set up the development environment to use Msbuild
IF EXIST "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" (
CALL "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat"
) ELSE IF EXIST "%programfiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" (
CALL "%programfiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
) ELSE IF EXIST "%programfiles(x86)%\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat" (
CALL "%programfiles(x86)%\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat"
) ELSE IF EXIST "%programfiles(x86)%\Microsoft Visual Studio\2017\Professional\Common7\Tools\VsDevCmd.bat" (
CALL "%programfiles(x86)%\Microsoft Visual Studio\2017\Professional\Common7\Tools\VsDevCmd.bat"
) ELSE IF EXIST "%programfiles(x86)%\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat" (
CALL "%programfiles(x86)%\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat"
) ELSE IF EXIST "%VS140COMNTOOLS%VsDevCmd.bat" (
CALL "%VS140COMNTOOLS%VsDevCmd.bat"
) ELSE IF EXIST "%VS130COMNTOOLS%VsDevCmd.bat" (
CALL "%VS130COMNTOOLS%VsDevCmd.bat"
) ELSE IF EXIST "%VS120COMNTOOLS%VsDevCmd.bat" (
CALL "%VS120COMNTOOLS%VsDevCmd.bat"
) ELSE (
ECHO Error: You don't seem to have Visual Studio installed!
)