summaryrefslogtreecommitdiff
path: root/msvc-dev.bat
blob: 74aee0b0a8282896db855813a64048bdb54b43f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@echo off

setlocal
cd /d %0\..
call msvc-env.bat

if exist "%VSHOME%\Common7\IDE\VCExpress.exe" (
	set IDE=%VSHOME%\Common7\IDE\VCExpress.exe
) else if exist "%VSHOME%\Common7\IDE\devenv.exe" (
	set IDE=%VSHOME%\Common7\IDE\devenv.exe
) else if exist "%VCHOME%\Auxiliary\Build\vcvars64.bat" (
	call "%VCHOME%\Auxiliary\Build\vcvars64.bat"
) else (
	echo "Cannot detect visual studio environment"
	goto error
)
start "" "%IDE%" "%SOLUTION%"

exit /b 0
goto end

:error
exit /b 1
goto end

:end

endlocal