azure - 未找到具有指定模式的包

标签 azure deployment azure-devops azure-web-app-service azure-pipelines-release-pipeline

我正在使用部署 azure 应用程序服务在团队服务中插入构建步骤,我希望能够将 PackageAsSingleFile 设置为 False 来构建我的解决方案。但是,当我尝试发布包含创建的工件路径的包时,我收到“未找到具有指定模式的包”。

我是否需要创建两个工件,一个作为 zip 文件,一个作为文件包才能执行我想要的操作?我尝试了不同的文件夹路径,但无论如何我都会遇到相同的错误。

enter image description here

最佳答案

请参阅以下步骤:

  1. 用于恢复包的 NuGet 安装程序任务
  2. Visual Studio 生成任务(解决方案:***.sln;Visual Studio 版本:Visual Studio 2015;MSBuild 参数:/p:DeployOnBuild=True/p:DeployDefaultTarget=WebPublish/p:WebPublishMethod=FileSystem/p:DeleteExistingFiles= True/p:publishUrl="$(build.artifactstagingdirectory)\"; 平台:$(BuildPlatform); 配置:$(BuildConfiguration))
  3. 发布构建工件(发布路径:$(build.artifactstagingdirectory);工件名称:drop;工件类型:服务器)
  4. 编辑/创建发布定义
  5. 将工件链接到之前的版本
  6. Azure 应用服务部署(包或文件夹:$(System.DefaultWorkingDirectory)/**/drop)
  7. 取消选中使用 Web 部署选项发布

关于azure - 未找到具有指定模式的包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44803475/

相关文章:

azure Blob MD5 校验和与本地 MD5 校验和不匹配

node.js - 部署竞争条件导致 CDN 缓存旧的或损坏的文件

deployment - Mac 安装程序包 - 如何有选择地安装到多个位置

azure - 由 Azure DevOps 执行时 xUnit 测试失败

azure - SQL Azure 等效项

node.js - Azure Functions,缩略图尺寸大于原始图像

azure - 如何使用 Terraform 设置 Azure 警报

node.js - ReactJS:如何在本地服务器上部署

build - VSTS 构建所有分支

azure-devops - 如何在 Azure DevOps 中将项目版本显示为发布名称