I have a project solution
where I also got a wix
project. Actually wix
is not supported by dotnet
. On my build pipeline I have to run dotnet restore
for the next stage
.
But because of the wix
project, I always get the following error:
D:\GitlabRunnerService\builds\fc40b836\0\customers\foo\foo-zls\src\foo.zls.setup.common\foo.zls.setup.common.wixproj(34,5): error : The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/
Is there any solution how to exlude projects from the dotnet restore
command?
gitlab-ci.yml
test:Common:
stage: test
script:
- dotnet restore src
- dotnet test --no-build -c Release -v n src\$env:TESTPROJECT\$env:TESTPROJECT.csproj --logger "trx;LogFileName=testreport.trx"
after_script:
- trx2junit src\$env:TESTPROJECT\Testresults\testreport.trx
artifacts:
reports:
junit: src\$env:TESTPROJECT\Testresults\testreport.xml
tags:
- dotnet-ps
In the Release
configuration, the wix
project is already excluded.