Replies: 3 comments 9 replies
-
WiX doesn't run as-is on Linux; it needs Windows components outside .NET. You might have better luck with a Windows container. |
Beta Was this translation helpful? Give feedback.
-
A little more info. Found the correct "Windows" runner to use, but still getting the original error: You can invoke the tool using the following command: wix |
Beta Was this translation helpful? Give feedback.
-
Thank you both! I was able to get it to run finally in GitLab! Now I need to find out why it is producing errors that don't exist when built on my machine. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am getting close to a solution for my problem of using GitLab to build my MSI using WiX 4. The problem is that when building my project locally everything works perfectly. I've attached a snippet from my WiX project file that I believe to be the issue when executed in the CI/CD pipeline.
wix-snippet.txt
When this builds in the GitLab CI/CD i get the following error:
MSBuild version 17.7.4+3ebbd7c49 for .NET
MSBUILD : error MSB1009: Project file does not exist.
Originally I was getting errors about WiX not being found etc, but i was able to resolve those issues by adding the following config to my "build" step in the yaml file:
build:
image: mcr.microsoft.com/dotnet/sdk:7.0
stage: build
before_script:
- dotnet tool install --global wix
- export PATH="$PATH:/root/.dotnet/tools"
- dotnet build --runtime win-x64 restore --packages $NUGET_PACKAGES_DIRECTORY
script:
- dotnet build --runtime win-x64 --no-restore
The above config at least attempts the build. Any ideas on how to get the MSI to build using GitLab CI/CD?
Beta Was this translation helpful? Give feedback.
All reactions