.net core 在Travis中针对不同的.Net核心版本构建多个解决方案
我的存储库中有两个.Net Core解决方案,一个针对.Net Core 2.2,另一个针对.Net Core 3。 我希望Travis构建这两个解决方案,但我只能在.Travis.yml中指定一个版本,因此另一个项目无法构建 My.travis.yml:.net core 在Travis中针对不同的.Net核心版本构建多个解决方案,.net-core,travis-ci,.net Core,Travis Ci,我的存储库中有两个.Net Core解决方案,一个针对.Net Core 2.2,另一个针对.Net Core 3。 我希望Travis构建这两个解决方案,但我只能在.Travis.yml中指定一个版本,因此另一个项目无法构建 My.travis.yml: dist: xenial language: csharp mono: none dotnet: 2.2 script: #Build Major Application - dotnet restore NetCore22Solu
dist: xenial
language: csharp
mono: none
dotnet: 2.2
script:
#Build Major Application
- dotnet restore NetCore22Solution/NetCore22Solution.sln
- dotnet build NetCore22Solution/NetCore22Solution.sln
#Build Services
- dotnet restore NetCore3Solution/NetCore3Solution.sln
- dotnet build NetCore3Solution/NetCore3Solution.sln
如何指定还需要.Net Core 3
我搜索了travis的c#论坛、github问题和google,但没有找到任何解决方案。我尝试将所需的版本添加为一个包,结果成功了:
addons:
apt:
packages:
- dotnet-sdk-3.0
Travis诚实地下载并安装了SDK。我尝试将所需的版本添加为一个包,结果成功了:
addons:
apt:
packages:
- dotnet-sdk-3.0
Travis诚实地下载并安装了SDK。您是否发现了相关内容?我也面临着同样的问题。你找到相关的东西了吗?我也面临同样的问题。