@@ -20,67 +20,20 @@ steps:
20
20
inputs :
21
21
packageType : sdk
22
22
version : ' 6.0.x'
23
- # version: '3.1.201'
24
23
24
+ - task : DotNetCoreCLI@2
25
+ displayName : ' Install GitVersion'
26
+ inputs :
27
+ command : ' custom'
28
+ custom : ' tool'
29
+ arguments : ' update -g gitversion.tool --version 5.5.*'
25
30
26
- # - task: BuildVersioning@0
27
- # displayName: 'Patching assembly versions (unstable build)'
28
- # condition: not(startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
29
- # inputs:
30
- # sourcePath: 'src'
31
- # versionSource: 'gitversion'
32
- # doInstallGitVersion: true
33
- # GitVersionInstallerSource: 'custom'
34
- # GitVersionInstallerUrl: 'https://packages.chocolatey.org/GitVersion.Portable.5.0.1.nupkg'
35
- # paramAssemblyVersion: '3'
36
- # paramAssemblyFileVersion: '3'
37
- # paramAssemblyInformationalVersion: '5'
38
- # paramOverwriteFourthDigitWithBuildCounter: false
39
- # paramVersionCode: '2'
40
- # doAssemblyInfoAppendSuffix: true
41
- # doConvertAssemblyInfoToLowerCase: true
42
- # paramAssemblyInfoSuffixType: '2'
43
- # buildNumberVersionFormat: '3'
44
- # buildNumberAction: 'replace'
45
- # doReplaceAssemblyInfo: false
46
- # doReplaceNuspec: false
47
- # doReplaceNpm: false
48
- # doReplaceDotNetCore: true
49
- # filePatternDotNetCore: '**\*.csproj'
50
- # paramDotNetCoreVersionType: '3'
51
- # doReplaceAndroid: false
52
- # doReplaceiOS: false
53
- # doReplaceCustom: false
54
- # doShowWarningsForUnmatchedRegex: true
55
- # excludeFilePattern: |
56
- # !**/bin/**
57
- # !**/obj/**
58
31
59
- # - task: BuildVersioning@0
60
- # condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
61
- # displayName: 'Patching assembly versions (stable build)'
62
- # inputs:
63
- # sourcePath: 'src'
64
- # versionSource: 'gitversion'
65
- # doInstallGitVersion: true
66
- # GitVersionInstallerSource: 'custom'
67
- # GitVersionInstallerUrl: 'https://packages.chocolatey.org/GitVersion.Portable.5.0.1.nupkg'
68
- # doUseLatestGitVersionInstallerVersion: false
69
- # versionFormat: 'fourParts'
70
- # paramAssemblyVersion: '4'
71
- # paramAssemblyFileVersion: '4'
72
- # paramAssemblyInformationalVersion: '4'
73
- # paramVersionCode: '2'
74
- # buildNumberVersionFormat: '3'
75
- # buildNumberAction: 'replace'
76
- # doReplaceAssemblyInfo: false
77
- # doReplaceDotNetCore: true
78
- # filePatternDotNetCore: '**\*.csproj'
79
- # paramDotNetCoreVersionType: '3'
80
- # doShowWarningsForUnmatchedRegex: true
81
- # excludeFilePattern: |
82
- # !**/bin/**
83
- # !**/obj/**
32
+
33
+ - task : PowerShell@2
34
+ displayName : ' Update build number and project version from GitVersion metadata'
35
+ inputs :
36
+ filePath : azure-pipelines-version.ps1
84
37
85
38
- task : DotNetCoreCLI@2
86
39
displayName : ' Build the solution'
0 commit comments