title: Setup azure-pipelines.yml "Directory '/home/vsts/work/1/a' is empty." with ASP.NET Core
body: <p>I seriously need help to create my yml build file because I cannot find any good tutorial, sample or other king of help anywhere. I always get similar error: See the warning, it seems my build artifact is always empty. All step are succes but I cannot deploy because my files are not found. Stupid.</p>
  
  <pre><code>##[section]Starting: PublishBuildArtifacts
  ==============================================================================
  Task         : Publish Build Artifacts
  Description  : Publish build artifacts to Azure Pipelines/TFS or a file share
  Version      : 1.142.2
  Author       : Microsoft Corporation
  Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=708390)
  ==============================================================================
  ##[warning]Directory '/home/vsts/work/1/a' is empty. Nothing will be added to build artifact 'drop'.
  ##[section]Finishing: PublishBuildArtifacts
  </code></pre>
  
  <p>Here is my pipeline definition</p>
  
  <pre><code># ASP.NET Core
  # Build and test ASP.NET Core projects targeting .NET Core.
  # Add steps that run tests, create a NuGet package, deploy, and more:
  # https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
  
  trigger:
  - master
  
  pool:
    vmImage: 'Ubuntu-16.04'
  
  variables:
    buildConfiguration: 'Release'
  
  steps:
  # - script: dotnet build --configuration $(buildConfiguration)
  #   displayName: 'dotnet build $(buildConfiguration)'
  
  - task: DotNetCoreInstaller@0
    inputs:
      version: '2.2.202' # replace this value with the version that you need for your project
  
  - script: dotnet restore
  
  - task: DotNetCoreCLI@2
    displayName: Build
    inputs:
      command: build
      projects: '**/*.csproj'
      arguments: '--configuration Release' # Update this to match your need
  
  - task: PublishBuildArtifacts@1
    inputs:
      ArtifactName: 'drop'
  </code></pre>
  
  <p>Note the 2 line I commented </p>
  
  <pre><code># - script: dotnet build --configuration $(buildConfiguration)
  #   displayName: 'dotnet build $(buildConfiguration)'
  </code></pre>
  
  <p>are in fact part of the default script. I'm not using the default script. I'm following the tutorial <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/dotnet-core?view=azure-devops" rel="noreferrer">https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/dotnet-core?view=azure-devops</a></p>
  
  <p>Also why I cannot use the templates available for my other projects. Is it because I'm using DevOps repository or because my project has specific settings? I have other project I can manage the build then deployment with graphical template and task. A lot more easier. </p>