Page 1 of 1

Regarding ze.cmd and newer versions of Visual Studio?

Posted: Thu Nov 19, 2015 4:05 am
by zbrown
Hi,

I noticed the ze.cmd file has calls for Visual Studio versions up to 2012 ("Microsoft Visual Studio 11.0") but it's missing calls for VS 2013 ("Microsoft Visual Studio 12.0") and VS 2015 ("Microsoft Visual Studio 14.0").

When might that be addressed? Right now I'm just patching my ze.cmd :).

-Zac

Re: Regarding ze.cmd and newer versions of Visual Studio?

Posted: Thu Nov 19, 2015 5:30 am
by jussij
Here is the version of ze.cmd that will be part of the next Zeus release:

Code: Select all

@echo off

REM
REM Use this line to setup the GOPATH packages location
REM
REM set GOPATH=%GOPATH%;C:\Tutorial\Go\Packages\

REM
REM Run the VSVARS32.BAT to setup the MS-Dev environment
REM

REM Microsoft Visual Studio 2014
:VS2014
if not exist "C:\Program Files\Microsoft Visual Studio 14.0\Common7\Tools\vsvars32.bat" goto VS2014a
call "C:\Program Files\Microsoft Visual Studio 14.0\Common7\Tools\vsvars32.bat"
goto Zeus

REM Microsoft Visual Studio 2014 - 64 Bit
:VS2014a
if not exist "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\vsvars32.bat" goto VS2012
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\vsvars32.bat"
goto Zeus

REM Microsoft Visual Studio 2012
:VS2012
if not exist "C:\Program Files\Microsoft Visual Studio 12.0\Common7\Tools\vsvars32.bat" goto VS2012a
call "C:\Program Files\Microsoft Visual Studio 12.0\Common7\Tools\vsvars32.bat"
goto Zeus

REM Microsoft Visual Studio 2012 - 64 Bit
:VS2012a
if not exist "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\vsvars32.bat" goto VS2011
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\vsvars32.bat"
goto Zeus

REM Microsoft Visual Studio 2011
:VS2011
if not exist "C:\Program Files\Microsoft Visual Studio 11.0\Common7\Tools\vsvars32.bat" goto VS2011a
call "C:\Program Files\Microsoft Visual Studio 11.0\Common7\Tools\vsvars32.bat"
goto Zeus

REM Microsoft Visual Studio 2011 - 64 Bit
:VS2011a
if not exist "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\vsvars32.bat" goto VS2010
call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\vsvars32.bat"
goto Zeus

REM Microsoft Visual Studio 2010
:VS2010
if not exist "C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat" goto VS2010a
call "C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat"
goto Zeus

REM Microsoft Visual Studio 2010 - 64 Bit
:VS2010a
if not exist "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat" goto VS2008
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat"
goto Zeus

REM Microsoft Visual Studio 2008
:VS2008
if not exist "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat" goto VS2008a
call "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
goto Zeus

REM Microsoft Visual Studio 2008 - 64 Bit
:VS2008a
if not exist "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat" goto VS2005
call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
goto Zeus

REM Microsoft Visual Studio 2005
:VS2005
if not exist "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat" goto VS2005a
call "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat"
goto Zeus

REM Microsoft Visual Studio 2005 - 64 Bit
:VS2005a
if not exist "C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat" goto Zeus
call "C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat"
goto Zeus

:Zeus
if not exist "C:\Program Files\Zeus\zeus.exe" goto Zeus_x86
start "" "C:\Program Files\Zeus\zeus.exe" -s
goto Zeus_Exit

:Zeus_x86
if not exist "C:\Program Files (x86)\Zeus\zeus.exe" goto Zeus_Error
start "" "C:\Program Files (x86)\Zeus\zeus.exe" -s
goto Zeus_Exit

:Zeus_Error
echo Unexpected error running the Zeus executable.
pause

:Zeus_Exit
exit