# .NET Desktop
# Build and run tests for .NET Desktop or Windows classic desktop solutions.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net

trigger:
  branches:
    include:
    - dev
    - master
  paths:
    exclude:
     - README.md

pr:
  branches:
    include:
    - dev
    - master
  paths:
    exclude:
     - README.md

name: $(Build.BuildId)

pool:
  vmImage: 'VS2019-Win2016'

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

steps:
- task: DotNetCoreInstaller@0
  displayName: Use NetCore 3.0.100-preview4-010332
  inputs:
    version: '3.0.100-preview4-010332'

- task: NuGetToolInstaller@0
  displayName: Use NuGet 4.9.3
  inputs:
    versionSpec: 4.9.3

- task: NuGetCommand@2
  displayName: 'NuGet restore'
  inputs:
    restoreSolution: '$(solution)'
    noCache: true

- task: VSBuild@1
  inputs:
    solution: '$(solution)'
    platform: '$(buildPlatform)'
    configuration: '$(buildConfiguration)'

Set up CI with Azure Pipelines
Set up CI with Azure Pipelines