gpt4 book ai didi

azure - 多个包与指定模式 : D:\a\r1\a\**\*. zip 匹配。请限制搜索模式

转载 作者:行者123 更新时间:2023-12-03 03:52:12 26 4
gpt4 key购买 nike

我已将 .NET Core 3.1 Web api 项目迁移到 .NET 5,当我在 azure DevOps 中配置发布管道时,收到以下错误。

2021-02-18T16:07:51.6102920Z ##[section]Starting: Deploy Azure AppService 2021-02-18T16:07:51.6257075Z============================================================================== 2021-02-18T16:07:51.6257406Z Task : Azure App Service deploy2021-02-18T16:07:51.6257755Z Description : Deploy to Azure AppService a web, mobile, or API app using Docker, Java, .NET, .NET Core,Node.js, PHP, Python, or Ruby 2021-02-18T16:07:51.6260779Z Version
: 4.181.0 2021-02-18T16:07:51.6261044Z Author : MicrosoftCorporation 2021-02-18T16:07:51.6261283Z Help :https://aka.ms/azureappservicetroubleshooting2021-02-18T16:07:51.6261567Z============================================================================== 2021-02-18T16:07:52.7413841Z ##[error]Error: More than one packagematched with specified pattern: D:\a\r1\a***.zip. Please restrainthe search pattern. 2021-02-18T16:07:52.7518620Z ##[section]Finishing:Deploy Azure App Service

这些是我在 Azure DevOps 中部署 .NET 5 时执行的步骤。

  1. 使用 .NET 5 创建 Azure Web 应用程序(早期访问) enter image description here
  2. 在 Azure DevOps 中创建了管道 enter image description here
  3. 从新的发布管道创建了工件 enter image description here
  4. 选定的 Azure 应用服务部署模板 enter image description here
  5. 选定的开发阶段 enter image description here
  6. 根据代理设置运行 enter image description here
  7. Azure 应用服务部署设置 enter image description here
  8. 创建了新版本 enter image description here
  9. 收到错误 enter image description here10)详细错误 enter image description here

这就是我现在面临的问题。有人知道如何解决吗?

最佳答案

任务Azure应用服务部署字段包或文件夹表示包含MSBuild生成的应用服务内容的包或文件夹的文件路径或压缩的 zip 或 war 文件。

enter image description here

该字段默认值为$(System.DefaultWorkingDirectory)/**/*.zip,它将匹配路径$(System.DefaultWorkingDirectory)中的所有zip文件> 如果 zip 文件的数量超过 1,我们将收到错误消息:错误:多个包与指定模式匹配:D:\a\r1\a\**\*.zip。请限制搜索模式

我们可以指定用于部署的 zip 文件,请查看下面的图片:

enter image description here

然后它应该可以工作。

关于azure - 多个包与指定模式 : D:\a\r1\a\**\*. zip 匹配。请限制搜索模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66264876/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com