gpt4 book ai didi

msbuild - 错误 : More than one package matched with specified pattern: D:\a\r1\a\**\*. zip。请限制搜索模式

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

我创建了一个构建管道,它可以正常工作并在最后发布工件。

我还创建了一个发布管道来将 REST API 部署到 Azure Web 应用程序

发布管道任务具有以下信息:

$(System.DefaultWorkingDirectory)/**/*.zip

但是我收到这个错误:
Error: More than one package matched with specified pattern: D:\a\r1\a\**\*.zip. Please restrain the search pattern.

当我看到drop文件夹时,我确实可以看到按日期有文件夹并且有几个.zip文件

enter image description here

webapi 位于 drop 根目录中,但也在显示的文件夹中。

我一直无法找到如何每次都清理整个放置文件夹,或者如何避免此错误。

更新 1:

在构建管道中,我可以看到何时发布:
##[section]Starting: Publish Artifact: webapidrops
==============================================================================
Task : Publish Build Artifacts
Description : Publish build artifacts to Azure Pipelines/TFS or a file share
Version : 1.142.2
Author : Microsoft Corporation
Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=708390)
==============================================================================
##[section]Async Command Start: Upload Artifact
Uploading 31 files
Uploading 'webapidrops/2019_04/04_06_58/LuloWebApi.zip' (16%)
Uploading 'webapidrops/LuloWebApi.zip' (16%)
Uploading 'webapidrops/LuloWebApi.zip' (33%)
Uploading 'webapidrops/LuloWebApi.zip' (50%)
Uploading 'webapidrops/LuloWebApi.zip' (66%)
Uploading 'webapidrops/LuloWebApi.zip' (83%)
Uploading 'webapidrops/LuloWebApi.zip' (100%)
File upload succeed.
Upload 'D:\a\1\a' to file container: '#/1483345/webapidrops'
Associated artifact 387 with build 125
##[section]Async Command End: Upload Artifact
##[section]Finishing: Publish Artifact: webapidrops

最佳答案

zip 文件来自您的构建管道。如果您只需要 LuloWebApi.zip,请配置您的构建管道发布工件任务以仅执行此操作。

如果您的发行版还需要第二个 zip,那么您可以在您的发行版中指定 LuloWebApi.zip:

$(System.DefaultWorkingDirecotry)/**/LuloWebApi.zip

或者,您提到 zip 也存在于日期文件夹中,因此请指定此文件夹:
$(System.DefaultWorkingDirectory)/**/**/*.zip

关于msbuild - 错误 : More than one package matched with specified pattern: D:\a\r1\a\**\*. zip。请限制搜索模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55495885/

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