@@ -42,14 +42,24 @@ jobs:
4242 timeoutInMinutes : 2
4343 continueOnError : false
4444 pool :
45- vmImage : ubuntu-18.04
45+ vmImage : ubuntu-latest
4646 steps :
47+ - task : UseDotNet@2
48+ displayName : ' Install current .NET Core SDK'
49+ inputs :
50+ packageType : sdk
51+ version : 6.x
52+ - task : DotNetCoreCLI@2
53+ displayName : ' Restore'
54+ inputs :
55+ command : ' restore'
56+ projects : ' src/ExchangeSharp/ExchangeSharp.csproj'
4757 - task : DotNetCoreCLI@2
4858 displayName : ' Build lib+console'
4959 inputs :
5060 command : ' build'
51- configuration : $(BuildConfiguration)
52- projects : ' src/ExchangeSharpConsole/ExchangeSharpConsole.csproj '
61+ projects : ' src/ExchangeSharp/ExchangeSharp.csproj '
62+ arguments : ' --configuration $(BuildConfiguration) --version-suffix prerelease-$(Date:yyyyMMddHHmmss) '
5363 # - task: DotNetCoreCLI@2
5464 # displayName: 'Tests'
5565 # inputs:
@@ -62,20 +72,18 @@ jobs:
6272 displayName : ' NuGet Pack'
6373 inputs :
6474 command : pack
65- packagesToPack : ' **/* .csproj'
75+ packagesToPack : ' src/ExchangeSharp/ExchangeSharp .csproj'
6676 packDestination : ' $(Build.ArtifactStagingDirectory)'
67- versioningScheme : byPrereleaseNumber
68- majorVersion : ' $(Major)'
69- minorVersion : ' $(Minor)'
70- patchVersion : ' $(Patch)'
71- - task : NuGetAuthenticate@0
72- displayName : ' NuGet Authenticate'
73- - task : NuGetCommand@2
74- displayName : ' NuGet push'
75- inputs :
76- command : push
77- publishVstsFeed : ' PublicProject/DigitalRuby'
78- allowPackageConflicts : true
77+ versioningScheme : off
78+ - task : NuGetToolInstaller@1
79+ - task : NuGetAuthenticate@0
80+ displayName : ' NuGet Authenticate'
81+ # - script: nuget push $(Build.ArtifactStagingDirectory)/*.nupkg -NonInteractive -Source https://pkgs.dev.azure.com/DigitalRuby/DigitalRuby/_packaging/DigitalRuby/nuget/v3/index.json -ApiKey AzureArtifacts -Verbosity Detailed
82+ - task : NuGetCommand@2
83+ displayName : ' NuGet push'
84+ inputs :
85+ command : push
86+ publishVstsFeed : DigitalRuby/DigitalRubyFeed
7987 - job : build_tag
8088 displayName : Build console app
8189 timeoutInMinutes : 5
0 commit comments