No packages found with specified pattern

ruffen picture ruffen · Jun 28, 2017 · Viewed 11.1k times · Source

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".

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.

enter image description here

Answer

starian chen-MSFT picture starian chen-MSFT · Jun 30, 2017

Refer to these steps:

  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