Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure VS with required components before building #65

Merged
merged 1 commit into from
Dec 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Confgure Visual Studio
shell: cmd
run: ./src/vs_config.cmd

- name: Build wix4
shell: cmd
run: ./src/build_official.cmd
Expand Down
11 changes: 11 additions & 0 deletions src/vs_config.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@echo off
setlocal enabledelayedexpansion

echo Configuring Visual Studio to build WiX Toolset...

for /f "usebackq tokens=*" %%i in (`"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath`) do (
echo Visual Studio installed at: "%%i"
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" modify --config "%~dp0wix.vsconfig" --installPath "%%i" --quiet --norestart --force
echo Configuration complete, exit code: !errorlevel!
exit /b !errorlevel!
)
6 changes: 6 additions & 0 deletions src/wix.vsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": "1.0",
"components": [
"Microsoft.Net.Component.4.7.2.TargetingPack"
robmen marked this conversation as resolved.
Show resolved Hide resolved
]
}