7
7
demands :
8
8
- ImageOverride -equals MMS2022TLS
9
9
10
+ variables :
11
+ project : ' src/dirs.proj'
12
+
10
13
steps :
11
14
- checkout : self
12
15
submodules : true
13
16
14
17
- task : UseDotNet@2
15
- displayName : ' Use the .NET Core 2.1 SDK (required for build signing)'
16
- inputs :
17
- packageType : ' sdk'
18
- version : ' 2.1.x'
19
-
20
- - task : UseDotNet@2
21
- displayName : ' Use the .NET 6 SDK'
18
+ displayName : ' Install .NET SDK'
22
19
inputs :
23
20
packageType : ' sdk'
24
21
useGlobalJson : true
@@ -29,27 +26,27 @@ steps:
29
26
inputs :
30
27
command : restore
31
28
verbosityRestore : Minimal
32
- projects : ' src/dirs.proj '
29
+ projects : $(project)
33
30
34
31
# Build source directory
35
32
- task : DotNetCoreCLI@2
36
33
displayName : ' Build'
37
34
inputs :
38
35
command : build
39
36
arguments : --no-restore -c release -p:FileVersionRevision=$(Build.BuildId) -p:ContinuousIntegrationBuild=true
40
- projects : ' src/dirs.proj '
37
+ projects : $(project)
41
38
42
39
# Authenticode sign all the DLLs with the Microsoft certificate.
43
40
# This appears to be an in-place signing job, which is convenient.
44
- - task : SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
41
+ - task : SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@2
45
42
displayName : ' ESRP CodeSigning: Authenticode'
46
43
inputs :
47
44
ConnectedServiceName : ' ESRP Service'
48
45
FolderPath : ' out/bin'
49
46
Pattern : ' Microsoft.DurableTask.*.dll'
50
47
signConfigType : inlineSignParams
51
48
inlineOperation : |
52
- [
49
+ [
53
50
{
54
51
" KeyCode " : " CP-230012" ,
55
52
" OperationCode " : " SigntoolSign" ,
@@ -88,34 +85,34 @@ steps:
88
85
configuration : release
89
86
nobuild : true
90
87
packDirectory : $(build.artifactStagingDirectory)
91
- packagesToPack : ' src/dirs.proj '
88
+ packagesToPack : $(project)
92
89
93
90
# Digitally sign all the nuget packages with the Microsoft certificate.
94
91
# This appears to be an in-place signing job, which is convenient.
95
- - task : SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
92
+ - task : SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@2
96
93
displayName : ' ESRP CodeSigning: Nupkg'
97
94
inputs :
98
95
ConnectedServiceName : ' ESRP Service'
99
96
FolderPath : $(build.artifactStagingDirectory)
100
97
Pattern : ' *.nupkg'
101
98
signConfigType : inlineSignParams
102
99
inlineOperation : |
103
- [
100
+ [
104
101
{
105
- "KeyCode": "CP-401405",
106
- "OperationCode": "NuGetSign",
107
- "Parameters": {},
108
- "ToolName": "sign",
109
- "ToolVersion": "1.0"
102
+ "KeyCode": "CP-401405",
103
+ "OperationCode": "NuGetSign",
104
+ "Parameters": {},
105
+ "ToolName": "sign",
106
+ "ToolVersion": "1.0"
110
107
},
111
108
{
112
- "KeyCode": "CP-401405",
113
- "OperationCode": "NuGetVerify",
114
- "Parameters": {},
115
- "ToolName": "sign",
116
- "ToolVersion": "1.0"
109
+ "KeyCode": "CP-401405",
110
+ "OperationCode": "NuGetVerify",
111
+ "Parameters": {},
112
+ "ToolName": "sign",
113
+ "ToolVersion": "1.0"
117
114
}
118
- ]
115
+ ]
119
116
120
117
# Make the nuget packages available for download in the ADO portal UI
121
118
- publish : $(build.artifactStagingDirectory)
0 commit comments