Configure VS with required components before building
Rob Mensching committed
Dec 14, 2021 at 10:32 UTC
f4b14a91e11b3e83f265c24435fdf705b616b15a
3 files changed
+21
.github/workflows/build.yml
+4
@@ -24,6 +24,10 @@ jobs:
24
- name: Checkout code
25
uses: actions/checkout@v2
26
27
+ - name: Confgure Visual Studio
28
+ shell: cmd
29
+ run: ./src/vs_config.cmd
30
+
31
- name: Build wix4
32
shell: cmd
33
run: ./src/build_official.cmd
src/vs_config.cmd
new
+11
@@ -0,0 +1,11 @@
1
+@echo off
2
+setlocal enabledelayedexpansion
3
+
4
+echo Configuring Visual Studio to build WiX Toolset...
5
+
6
+for /f "usebackq tokens=*" %%i in (`"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath`) do (
7
+ echo Visual Studio installed at: "%%i"
8
+ "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" modify --config "%~dp0wix.vsconfig" --installPath "%%i" --quiet --norestart --force
9
+ echo Configuration complete, exit code: !errorlevel!
10
+ exit /b !errorlevel!
11
+)
src/wix.vsconfig
new
+6
@@ -0,0 +1,6 @@
1
+{
2
+ "version": "1.0",
3
+ "components": [
4
+ "Microsoft.Net.Component.4.7.2.TargetingPack"
5
+ ]
6
+}