【发布时间】:2019-12-02 11:40:37
【问题描述】:
我有一个project solution,我也有一个wix 项目。实际上wix 不支持dotnet。在我的构建管道上,我必须为下一个 stage 运行 dotnet restore。
但是因为wix这个项目,我总是报如下错误:
D:\GitlabRunnerService\builds\fc40b836\0\customers\foo\foo-zls\src\foo.zls.setup.common\foo.zls.setup.common.wixproj(34,5):错误:必须安装 WiX Toolset v3.11(或更新版本)构建工具才能构建此项目。要下载 WiX 工具集,请参阅http://wixtoolset.org/releases/
是否有任何解决方案如何从dotnet restore 命令中排除项目?
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
在Release 配置中,wix 项目已被排除。
【问题讨论】:
-
您是否尝试从内置解决方案属性中跳过此项目?
-
在解决方案视图中右键单击项目 => 卸载项目 => 构建?
-
我添加了更多信息