2020-01-11 01:16:13 +00:00
|
|
|
# .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:
|
|
|
|
|
- master
|
2020-01-12 10:50:03 +00:00
|
|
|
- dev
|
2020-01-11 01:16:13 +00:00
|
|
|
|
|
|
|
|
pool:
|
2020-03-04 00:09:25 +00:00
|
|
|
vmImage: 'windows-2019' #'due to windows SDK dependency for building UWP project'
|
2020-01-11 01:16:13 +00:00
|
|
|
|
|
|
|
|
variables:
|
|
|
|
|
solution: '**/*.sln'
|
|
|
|
|
buildPlatform: 'Any CPU'
|
|
|
|
|
buildConfiguration: 'Release'
|
|
|
|
|
|
|
|
|
|
steps:
|
2020-03-04 00:00:57 +00:00
|
|
|
- task: UseDotNet@2
|
|
|
|
|
displayName: 'Install .NET Core sdk'
|
|
|
|
|
inputs:
|
|
|
|
|
packageType: sdk
|
|
|
|
|
version: 3.1.100
|
|
|
|
|
installationPath: $(Agent.ToolsDirectory)/dotnet
|
2020-03-04 00:09:25 +00:00
|
|
|
|
2020-01-11 01:16:13 +00:00
|
|
|
- task: NuGetToolInstaller@1
|
|
|
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
|
|
|
|
inputs:
|
|
|
|
|
restoreSolution: '$(solution)'
|
|
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
|
|
|
|
inputs:
|
|
|
|
|
solution: '$(solution)'
|
|
|
|
|
platform: '$(buildPlatform)'
|
|
|
|
|
configuration: '$(buildConfiguration)'
|
|
|
|
|
|
|
|
|
|
- task: VSTest@2
|
|
|
|
|
inputs:
|
|
|
|
|
platform: '$(buildPlatform)'
|
|
|
|
|
configuration: '$(buildConfiguration)'
|