找不到指定格式的软件包 [英] No packages found with specified pattern

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

问题描述

我正在使用Deploy azure应用程序服务在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;工件类型:Server)
  4. 编辑/创建发布定义
  5. 将工件链接到以前的版本
  6. Azure App Service部署(包或文件夹:$(System.DefaultWorkingDirectory)/**/drop)
  7. 取消选中使用Web部署选项发布
  1. NuGet Installer task to restore package
  2. Visual Studio Build task (Solution: ***.sln; Visual Studio Version: Visual Studio 2015; MSBuild Arguments: /p:DeployOnBuild=True /p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem /p:DeleteExistingFiles=True /p:publishUrl="$(build.artifactstagingdirectory)\"; Platform: $(BuildPlatform); Configuration: $(BuildConfiguration))
  3. Publish Build Artifacts (Path to Publish: $(build.artifactstagingdirectory); Artifact Name: drop; Artifact Type: Server)
  4. Edit/create Release definition
  5. Link artifact to previous build
  6. Azure App Service Deploy (Package or Folder: $(System.DefaultWorkingDirectory)/**/drop)
  7. Uncheck Publish using Web Deploy option

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

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