Visual Studio Team Services Release/Deploy fails - “No package found with specified pattern”

前端 未结 5 1219
逝去的感伤
逝去的感伤 2021-02-12 13:47

I\'m trying to implement continuous integration and continuous deployment to my DEV Azure App Service. I\'m using the hosted agent on Visual Studio Team Services. The \"Deploy W

5条回答
  •  灰色年华
    2021-02-12 14:10

    Had the same problem few hours ago. This how I was able to resolve the issue:

    1. Ensure MSBuild arguments in Build solution step are: /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\"

    2. Add step Azure App Service Deployment: ARM

    3. Configure subscription and App Service Name
    4. Package or Folder should be $(build.artifactstagingdirectory)\**\*.zip

    Steps:

    Azure App Service Deployment Configuration:

提交回复
热议问题