diff options
author | Lluis Sanchez <llsan@microsoft.com> | 2022-02-03 18:04:23 +0300 |
---|---|---|
committer | Lluis Sanchez <llsan@microsoft.com> | 2022-02-03 18:04:23 +0300 |
commit | e010c03d84f527f6b711be78a4a114e52e4b5276 (patch) | |
tree | 8a639029b132d4c061b6b0cfb28c548f4db2e26a | |
parent | f4e700578e3d21aa8befca61aa841b2d8db275de (diff) |
Set up CI with Azure Pipelinesazure-pipelines
[skip ci]
-rw-r--r-- | azure-pipelines.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..de7d5a0f --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,33 @@ +# .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: +- main + +pool: + vmImage: 'windows-latest' + +variables: + solution: '**/*.sln' + buildPlatform: 'Any CPU' + buildConfiguration: 'Release' + +steps: +- 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)' |