Files
wpf-notifyicon/azure-pipelines.yml
Robin Krom 7ab5a58c2a Fixed a warning about using the icon link for the nuget package, so we now use an icon.png
Updated the build to use the most current dotnet core and also the nerdbank gitversion.
2020-05-06 20:42:03 +02:00

55 lines
1.3 KiB
YAML

# .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:
batch: true
branches:
include:
- master
- feature/*
exclude:
- gh-pages
stages:
- stage: Build
jobs:
- job: Build
pool:
vmImage: 'Windows-latest'
variables:
solution: '**/src/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
- task: UseDotNet@2
displayName: 'Use .NET Core sdk 3.1.2'
inputs:
packageType: sdk
version: 3.1.201
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '$(solution)'
arguments: '--configuration $(buildConfiguration) /p:Platform="$(buildPlatform)"'
- task: CopyFiles@2
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)'
Contents: |
**\bin\$(buildConfiguration)\*.nupkg
TargetFolder: '$(Build.ArtifactStagingDirectory)'
flattenFolders: true
- publish: $(Build.ArtifactStagingDirectory)
artifact: drop