没有找到指定模式的包 [英] No packages found with specified pattern

本文介绍了没有找到指定模式的包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Deploy azure app service 来插入 Team Services 中的构建步骤,我希望能够在 PackageAsSingleFile 设置为 False 的情况下构建我的解决方案.但是,当我尝试使用创建的工件的路径发布包时,我得到未找到具有指定模式的包".

I am using Deploy azure app service to slot build step in Team Services, I want to be able to build my solution with PackageAsSingleFile set to False. However when I try to release the package with path to the artifact created I get "No packages found with specified pattern".

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

Do I need to create two artifacts, one as zip file and one as a package of files to be able to do what I want? I have tried different path to folders, but I get same error no matter.

推荐答案

参考以下步骤:

  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 部署选项发布

这篇关于没有找到指定模式的包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆