File tree Expand file tree Collapse file tree 5 files changed +26
-28
lines changed Expand file tree Collapse file tree 5 files changed +26
-28
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments