1212trigger :
1313 branches :
1414 include :
15- - master
15+ - main
1616 - develop
1717 - feature/*
1818 - bugfix/*
@@ -21,17 +21,25 @@ trigger:
2121 exclude :
2222 - Docs/*
2323
24+ schedules :
25+ - cron : " 0 0 1 * *"
26+ displayName : At 00:00 on day-of-month 1
27+ branches :
28+ include :
29+ - develop
30+ always : true
31+
2432variables :
2533 solution : ' HttpClient.Caching.sln'
2634 buildPlatform : ' Any CPU'
2735 buildConfiguration : ' Release'
2836 majorVersion : 1
29- minorVersion : 3
37+ minorVersion : 4
3038 patchVersion : $[counter(format('{0}.{1}', variables.majorVersion, variables.minorVersion), 0)]
31- ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/master ') }} :
39+ ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/main ') }} :
3240 # Versioning: 1.0.0
3341 semVersion : $[format('{0}.{1}.{2}', variables.majorVersion, variables.minorVersion, variables.patchVersion)]
34- ${{ if and(ne(variables['Build.SourceBranch'], 'refs/heads/master '), not(startsWith(variables['Build.SourceBranch'], 'refs/pull/'))) }} :
42+ ${{ if and(ne(variables['Build.SourceBranch'], 'refs/heads/main '), not(startsWith(variables['Build.SourceBranch'], 'refs/pull/'))) }} :
3543 # Versioning: 1.0.0-pre
3644 semVersion : $[format('{0}.{1}.{2}-pre', variables.majorVersion, variables.minorVersion, variables.patchVersion)]
3745 ${{ if startsWith(variables['Build.SourceBranch'], 'refs/pull/') }} :
@@ -66,7 +74,12 @@ steps:
6674 LogLevel : ' verbose'
6775 FailOnWarning : false
6876 DisableTelemetry : false'
69-
77+
78+ - task : UseDotNet@2
79+ displayName : ' Use .NET 8.x'
80+ inputs :
81+ version : 8.x
82+
7083- task : NuGetToolInstaller@0
7184 displayName : ' Use NuGet 6.x'
7285 inputs :
8396 inputs :
8497 projects : ' $(solution)'
8598 arguments : ' --no-restore --configuration $(buildConfiguration)'
86-
99+
87100- task : DotNetCoreCLI@2
88101 displayName : ' Run UnitTests'
89102 inputs :
@@ -106,6 +119,7 @@ steps:
106119 packagesToPack : HttpClient.Caching/HttpClient.Caching.csproj
107120 versioningScheme : byEnvVar
108121 versionEnvVar : semVersion
122+ nobuild : true
109123
110124- task : CopyFiles@2
111125 displayName : ' Copy Files to: $(Build.ArtifactStagingDirectory)'
0 commit comments