Skip to content

Commit 9a53858

Browse files
ssaroiuDaniel15
authored andcommitted
Added all three VS 2017 versions to all build scripts (#610)
This PR adds supports for all three VS2017 versions to the following build scripts: dev-build-push.bat, release-build-push.bat, and release-build.bat
1 parent 4208e2e commit 9a53858

File tree

5 files changed

+26
-28
lines changed

5 files changed

+26
-28
lines changed

dev-build-push.bat

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
@echo off
2-
"%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" build.proj /t:Package;Push /p:BuildType=Dev
3-
pause
1+
call runs-msbuild.bat "/p:BuildType=Dev" "/t:Package;Push"

dev-build.bat

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
@echo off
2-
3-
for %%s in (
4-
"%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"
5-
"%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe"
6-
"%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe"
7-
) do (
8-
if exist %%s (
9-
echo %%s build.proj
10-
%%s build.proj
11-
goto :done
12-
)
13-
)
14-
15-
:notfound
16-
echo Could not find MSBuild.exe. Make sure Visual Studio 2017 is installed and try again.
17-
18-
:done
19-
pause
1+
call runs-msbuild.bat "/p:BuildType=Dev"

release-build-push.bat

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
@echo off
2-
"%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" build.proj /t:Package;Push /p:BuildType=Release
3-
pause
1+
call runs-msbuild.bat "/p:BuildType=Release" "/t:Package;Push"

release-build.bat

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
@echo off
2-
"%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" build.proj /p:BuildType=Release
3-
pause
1+
call runs-msbuild.bat "/p:BuildType=Release"

runs-msbuild.bat

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
@echo off
2+
3+
set BUILDTYPE="%~1"
4+
set ACTION="%~2"
5+
6+
for %%s in (
7+
"%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"
8+
"%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe"
9+
"%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe"
10+
) do (
11+
if exist %%s (
12+
echo %%s build.proj %ACTION% %BUILDTYPE%
13+
%%s build.proj %ACTION% %BUILDTYPE%
14+
goto :done
15+
)
16+
)
17+
18+
:notfound
19+
echo Could not find MSBuild.exe. Make sure Visual Studio 2017 is installed and try again.
20+
21+
:done
22+
pause

0 commit comments

Comments
 (0)