@@ -81,11 +81,16 @@ stages:
81
81
- name : project
82
82
value : src/Microsoft.Data.SqlClient/extensions/Extensions/Microsoft.Data.SqlClient.Extensions.slnx
83
83
84
- # Common dotnet CLI arguments to use for all commands.
84
+ # dotnet CLI arguments common to all commands.
85
85
- name : commonArguments
86
- value :
86
+ value : >
87
87
--verbosity ${{parameters.verbosity}}
88
- --artifacts-path '$(dotnetArtifactsDir)'
88
+ --artifacts-path $(dotnetArtifactsDir)
89
+
90
+ # dotnet CLI arguments for build/test/pack commands
91
+ - name : buildArguments
92
+ value : >
93
+ $(commonArguments)
89
94
--configuration ${{parameters.buildConfiguration}}
90
95
-p:BuildNumber=$(Build.BuildNumber)
91
96
-p:ExtensionsPackageVersion=${{parameters.packageVersion}}
@@ -118,31 +123,31 @@ stages:
118
123
command : custom
119
124
custom : build
120
125
projects : $(project)
121
- arguments : $(commonArguments ) --no-restore
126
+ arguments : $(buildArguments ) --no-restore
122
127
123
128
- task : DotNetCoreCLI@2
124
129
displayName : Test .NET 9.0
125
130
inputs :
126
131
command : custom
127
132
custom : test
128
133
projects : $(project)
129
- arguments : ($commonArguments ) --no-build -f net9.0
134
+ arguments : $(buildArguments ) --no-build -f net9.0
130
135
131
136
- task : DotNetCoreCLI@2
132
137
displayName : Test .NET 8.0
133
138
inputs :
134
139
command : custom
135
140
custom : test
136
141
projects : $(project)
137
- arguments : ($commonArguments ) --no-build -f net8.0
142
+ arguments : $(buildArguments ) --no-build -f net8.0
138
143
139
144
- task : DotNetCoreCLI@2
140
145
displayName : Create NuGet Package
141
146
inputs :
142
147
command : custom
143
148
custom : pack
144
149
projects : $(project)
145
- arguments : $(commonArguments ) --no-build -o ' $(dotnetPackagesDir)'
150
+ arguments : $(buildArguments ) --no-build -o $(dotnetPackagesDir)
146
151
147
152
- task : PublishPipelineArtifact@1
148
153
displayName : Publish Pipeline Artifacts
0 commit comments