Compile using VS2017

This commit is contained in:
Nikolaj Olsson 2017-03-28 17:40:14 +02:00
parent 04055abd3e
commit 5545a653b8
2 changed files with 9 additions and 8 deletions

View File

@ -10,11 +10,8 @@ IF /I "%~1" == "-help" GOTO SHOWHELP
IF /I "%~1" == "--help" GOTO SHOWHELP
IF /I "%~1" == "/?" GOTO SHOWHELP
IF DEFINED VS140COMNTOOLS (
SET VSVARS_BAT="%VS140COMNTOOLS%vsvars32.bat"
) ELSE (
ECHO Cannot find Visual Studio 2015
GOTO EndWithError
for /f "usebackq tokens=1* delims=: " %%i in (`vswhere -latest -requires Microsoft.Component.MSBuild`) do (
if /i "%%i"=="installationPath" set InstallDir=%%j
)
IF "%~1" == "" (
@ -41,12 +38,16 @@ IF "%~1" == "" (
:START
PUSHD "src"
CALL %VSVARS_BAT%
TITLE %BUILDTYPE%ing SubtitleEdit - Release^|Any CPU...
"MSBuild.exe" SubtitleEdit.sln /t:%BUILDTYPE% /p:Configuration=Release /p:Platform="Any CPU"^
if exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" (
"%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" SubtitleEdit.sln /t:%BUILDTYPE% /p:Configuration=Release /p:Platform="Any CPU"^
/maxcpucount /consoleloggerparameters:DisableMPLogging;Summary;Verbosity=minimal
IF %ERRORLEVEL% NEQ 0 GOTO EndWithError
IF %ERRORLEVEL% NEQ 0 GOTO EndWithError
) else (
ECHO Cannot find Visual Studio 2017
GOTO EndWithError
)
IF /I "%BUILDTYPE%" == "Clean" GOTO END

BIN
vswhere.exe Normal file

Binary file not shown.