title: How to deploy a WebApp from a folder (not a zip) in Azure DevOps
body: <p>I cannot get DevOps to deploy using a folder, it is giving me this error:</p>
  
  <blockquote>
    <p>[error]Error: No package found with specified pattern:
    d:\a\1\a*.deploy.cmd<br/>Check if the package mentioned in the task
    is published as an artifact in the build or a previous stage and
    downloaded in the current job.</p>
  </blockquote>
  
  <p>Azure App Service Deploy Task documentation says this about the Package argument:</p>
  
  <blockquote>
    <p>File path to the package, or to a folder containing App Service
    contents generated by MSBuild, or to a compressed zip or war file.</p>
  </blockquote>
  
  <p>this is my publish task:</p>
  
  <pre><code>  - task: DotNetCoreCLI@2
      inputs:
        command: publish
        publishWebProjects: false
        arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)'
        zipAfterPublish: false
        modifyOutputPath: true
        projects: |
          src/Company/Project.csproj 
  </code></pre>
  
  <p>and my deploy task:</p>
  
  <pre><code>  - task: AzureRmWebAppDeployment@4
      inputs:
        ConnectionType: 'PublishProfile'
        PublishProfilePath: '$(System.DefaultWorkingDirectory)/src/Company/Properties/PublishProfiles/WebDeploy.pubxml'
        PublishProfilePassword: '$(password)'
        Package: '$(Build.ArtifactStagingDirectory)/Company'
  </code></pre>
  
  <p>Why is it looking for a deploy.cmd? What am I doing wrong?</p>