【发布时间】:2019-09-21 21:47:01
【问题描述】:
我遇到了 Azure Pipelines 的问题。我正在尝试构建一个 ASP.NET Core 3.0 项目。是的,我知道它还不支持,但其他 questions 说你可以通过在管道脚本中包含以下内容来做到这一点。但是,我不确定该怎么做。
- 任务:DotNetCoreInstaller@0
displayName: '安装 .net core 3.0(预览版)'
输入:版本:'3.0.100-preview6-012264'
我是否将以上内容粘贴到以下脚本中?如果没有,我会把它放在哪里?另外,我目前使用的是 Preview 9 — 还支持吗?
# ASP.NET Core
# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
variables:
buildConfiguration: 'Release'
steps:
- script: dotnet build --configuration $(buildConfiguration)
displayName: 'dotnet build $(buildConfiguration)'
【问题讨论】:
标签: azure-devops azure-pipelines .net-core-3.0