queue:
  name: Hosted Linux
steps:

- task: DotNetCoreCLI@1
  inputs:
    command: "restore"
    projects: "*.sln"

- task: DotNetCoreCLI@1
  inputs:
    command: "build"
    projects: "src/**/*.csproj"
    arguments: "--configuration Release"

- task: DotNetCoreCLI@1
  inputs:
    command: "test"
    projects: "test/**/*tests.csproj"
    arguments: "--configuration Release"

- task: PublishTestResults@2

- task: DotNetCoreCLI@1
  inputs:
    command: "publish"
    publishWebProjects: "True"
    arguments: "--configuration Release --output $(build.artifactstagingdirectory)"
    zipAfterPublish: "True"

- task: PublishBuildArtifacts@1
  inputs:
    PathtoPublish: "$(build.artifactstagingdirectory)"
    ArtifactName: "drop"
    ArtifactType: "Container"

queue:
  name: Hosted Linux
steps:

- task: DotNetCoreCLI@2
  inputs:
    command: "restore"
    projects: "*.sln"

- task: DotNetCoreCLI@2
  inputs:
    command: "build"
    projects: "src/**/*.csproj"
    arguments: "--configuration Release"

- task: DotNetCoreCLI@2
  inputs:
    command: "test"
    projects: "test/**/*tests.csproj"
    arguments: "--configuration Release"

- task: PublishTestResults@2

- task: DotNetCoreCLI@2
  inputs:
    command: "publish"
    publishWebProjects: "True"
    arguments: "--configuration Release --output $(build.artifactstagingdirectory)"
    zipAfterPublish: "True"

- task: PublishBuildArtifacts@1
  inputs:
    PathtoPublish: "$(build.artifactstagingdirectory)"
    ArtifactName: "drop"
    ArtifactType: "Container"

Update yml to use version 2 of dotnet cli
Update yml to use version 2 of dotnet cli
