【问题标题】:What are the steps that happen during the build process of ASP.NET Core 3.1?ASP.NET Core 3.1 的构建过程中有哪些步骤?
【发布时间】:2020-04-21 19:49:25
【问题描述】:

我是 Azure 管道的新手,不了解 ASP.NET Core 3.1 的构建过程。比如,使用 nuget、nuget restore、符号等。我已经使用托管 vs2017 成功创建了一个管道,但现在使用 Azure Pipelines 作为代理池,我之前创建的作业不再工作了。

【问题讨论】:

  • 您目前面临的问题是什么?你有任何错误信息吗?
  • @HugoBarona 它在 nuget 恢复中。错误:.NET Core SDK 版本 3.1.201 至少需要 MSBuild 版本 16.3.0。当前可用的 MSBuild 版本是 15.9.21.664。将 global.json 中指定的 .NET Core SDK 更改为需要当前可用的 MSBuild 版本的旧版本。
  • 好的,我知道了,给你解决方案

标签: azure azure-devops


【解决方案1】:

在您的构建管道定义中,您可以选择在运行作业时使用的主机类型(VM 映像)。

所以在这种情况下,我建议你使用最新版本的 windows 作为 VM 映像

- job: Windows
  pool:
   vmImage: 'windows-latest'

更多信息in this url

【讨论】:

    猜你喜欢
    • 2020-09-25
    • 1970-01-01
    • 1970-01-01
    • 2020-08-29
    • 1970-01-01
    • 2020-08-02
    • 1970-01-01
    • 2020-11-27
    • 1970-01-01
    相关资源
    最近更新 更多