2020-02-07 14:54:02 +01: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
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: 'windows-latest'
|
|
|
|
|
2020-02-07 16:25:07 +01:00
|
|
|
name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
|
|
|
|
|
2020-02-07 14:54:02 +01:00
|
|
|
variables:
|
|
|
|
solution: '**/*.sln'
|
|
|
|
buildPlatform: 'Any CPU'
|
|
|
|
buildConfiguration: 'Release'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: NuGetToolInstaller@1
|
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
|
|
|
inputs:
|
|
|
|
restoreSolution: '$(solution)'
|
|
|
|
|
2020-02-07 15:08:54 +01:00
|
|
|
- task: DotNetCoreCLI@2
|
2020-02-07 14:54:02 +01:00
|
|
|
inputs:
|
2020-02-07 15:08:54 +01:00
|
|
|
command: 'build'
|
|
|
|
projects: |
|
|
|
|
**/MLEM*.csproj
|
|
|
|
**/Demos.csproj
|
2020-02-07 16:15:38 +01:00
|
|
|
**/Demos.DesktopGL.csproj
|
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
inputs:
|
|
|
|
command: 'pack'
|
|
|
|
packagesToPack: '**/MLEM*.csproj'
|
|
|
|
versioningScheme: 'byBuildNumber'
|
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
|
|
|
inputs:
|
|
|
|
command: 'push'
|
|
|
|
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
|
|
|
|
nuGetFeedType: 'internal'
|
|
|
|
publishVstsFeed: '706ac046-8929-4e12-a3fc-31c6da632843/1e458b61-aefe-4164-82ca-8a63d1ccc611'
|
|
|
|
allowPackageConflicts: true
|