Skip to content

Commit c70bbe9

Browse files
committed
Add build scripts to sample apps
1 parent 6faecdc commit c70bbe9

File tree

6 files changed

+73
-0
lines changed

6 files changed

+73
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@echo off
2+
3+
set vswhere="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
4+
5+
for /f "usebackq tokens=*" %%i in (`%vswhere% -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) do (
6+
set InstallDir=%%i
7+
)
8+
9+
if exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" (
10+
"%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" /t:restore %*
11+
"%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" %*
12+
)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@echo off
2+
3+
set vswhere="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
4+
5+
for /f "usebackq tokens=*" %%i in (`%vswhere% -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) do (
6+
set InstallDir=%%i
7+
)
8+
9+
if exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" (
10+
"%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" /t:restore %*
11+
"%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" %*
12+
)

Samples/WpfMVVMSample/build.bat

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@echo off
2+
3+
set vswhere="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
4+
5+
for /f "usebackq tokens=*" %%i in (`%vswhere% -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) do (
6+
set InstallDir=%%i
7+
)
8+
9+
if exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" (
10+
"%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" /t:restore %*
11+
"%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" %*
12+
)

Samples/build.bat

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@echo off
2+
3+
set vswhere="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
4+
5+
for /f "usebackq tokens=*" %%i in (`%vswhere% -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) do (
6+
set InstallDir=%%i
7+
)
8+
9+
echo %vswhere%
10+
11+
if exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" (
12+
"%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" %*
13+
)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@echo off
2+
3+
set vswhere="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
4+
5+
for /f "usebackq tokens=*" %%i in (`%vswhere% -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) do (
6+
set InstallDir=%%i
7+
)
8+
9+
if exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" (
10+
"%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" /t:restore %*
11+
"%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" %*
12+
)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@echo off
2+
3+
set vswhere="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
4+
5+
for /f "usebackq tokens=*" %%i in (`%vswhere% -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) do (
6+
set InstallDir=%%i
7+
)
8+
9+
if exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" (
10+
"%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" /t:restore %*
11+
"%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" %*
12+
)

0 commit comments

Comments
 (0)