Skip to content

DevOps CI Pipeline sample

Roman Jašek edited this page Apr 8, 2023 · 1 revision
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

pool:
  vmImage: 'windows-2022'

variables:
  solution: '**/*.sln'
  buildPlatform: 'Any CPU'
  buildConfiguration: 'Release'

steps:

# Add this Command to Include the .NET 6 SDK
- task: UseDotNet@2
  displayName: Use .NET 7.0
  inputs:
    packageType: 'sdk'
    version: '7.0.x'

- task: CmdLine@2
  inputs:
    script: 'dotnet workload install maui'

- task: DotNetCoreCLI@2
  name: "Build"
  inputs:
    command: 'build'
    projects: '*/CookBook.sln'

- task: DotNetCoreCLI@2
  name: "Test"
  inputs:
    command: 'test'
    projects: '*/CookBook.sln'