0
0
mirror of https://github.com/OpenVPN/openvpn.git synced 2024-09-20 12:02:28 +02:00
openvpn/msvc-dev.bat

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
504 B
Batchfile
Raw Normal View History

@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