pool:
  vmImage: 'ubuntu-latest'

steps:
- task: UseDotNet@2
  displayName: 'Use .NET Core SDK 3.1'
  inputs:
    packageType: 'sdk'
    version: '3.1.101'

- task: 'PowerShell@2'
  displayName: 'Build, Test, and Pack'
  inputs:
    targetType: 'filePath'
    filePath: 'build/build.ps1'
    arguments: '-SkipTestReport'
    workingDirectory: 'build'

- task: PublishCodeCoverageResults@1
  displayName: 'Publish Code Coverage'
  inputs:
    codeCoverageTool: 'cobertura'
    summaryFileLocation: 'coverage/coverage.cobertura*.xml'

- task: PublishTestResults@2
  displayName: 'Publish Test Results'
  inputs:
    testResultsFormat: 'VSTest'
    testResultsFiles: 'testResults/*.trx'

- task: PublishBuildArtifacts@1
  displayName: 'Publish Artifacts'
  inputs:
    pathtoPublish: 'artifacts'
    artifactName: 'artifacts'

pool:
  vmImage: 'windows-latest'

steps:
- task: UseDotNet@2
  displayName: 'Use .NET Core SDK 3.1'
  inputs:
    packageType: 'sdk'
    version: '3.1.101'

- task: 'PowerShell@2'
  displayName: 'Build, Test, and Pack'
  inputs:
    targetType: 'filePath'
    filePath: 'build/build.ps1'
    arguments: '-SkipTestReport'
    workingDirectory: 'build'

- task: PublishCodeCoverageResults@1
  displayName: 'Publish Code Coverage'
  inputs:
    codeCoverageTool: 'cobertura'
    summaryFileLocation: 'coverage/coverage.cobertura*.xml'

- task: PublishTestResults@2
  displayName: 'Publish Test Results'
  inputs:
    testResultsFormat: 'VSTest'
    testResultsFiles: 'testResults/*.trx'

- task: PublishBuildArtifacts@1
  displayName: 'Publish Artifacts'
  inputs:
    pathtoPublish: 'artifacts'
    artifactName: 'artifacts'

Change pipeline back to windows
Change pipeline back to windows
