Created
May 12, 2023 07:24
-
-
Save bjoerntx/62e09bd57b4fd85868bb9e48a8f90f3e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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 | |
pool: | |
vmImage: 'windows-latest' | |
variables: | |
solution: '**/*.sln' | |
buildPlatform: 'Any CPU' | |
buildConfiguration: 'Release' | |
steps: | |
- task: NuGetToolInstaller@1 | |
- task: NuGetCommand@2 | |
inputs: | |
command: 'restore' | |
restoreSolution: '**/*.sln' | |
feedsToUse: 'config' | |
nugetConfigPath: 'yourAppName/nuget.config' | |
- task: VSBuild@1 | |
inputs: | |
solution: '$(solution)' | |
platform: '$(buildPlatform)' | |
configuration: '$(buildConfiguration)' | |
- task: VSTest@2 | |
inputs: | |
platform: '$(buildPlatform)' | |
configuration: '$(buildConfiguration)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment