Skip to content

Commit 3972def

Browse files
committed
Apply version in pipeline
1 parent fea8050 commit 3972def

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

azure-pipelines.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -269,27 +269,27 @@ jobs:
269269
- task: CmdLine@2
270270
displayName: 'Build CommunityToolkit.Maui.Core'
271271
inputs:
272-
script: 'dotnet build $(PathToCommunityToolkitCoreCsproj) -c Release -p:PackageVersion=$(NugetPackageVersion)'
272+
script: 'dotnet build $(PathToCommunityToolkitCoreCsproj) -c Release -p:PackageVersion=$(NugetPackageVersion)' -p:Version=$(NugetPackageVersion)'
273273

274274
- task: CmdLine@2
275275
displayName: 'Build CommunityToolkit.Maui'
276276
inputs:
277-
script: 'dotnet build $(PathToCommunityToolkitCsproj) -c Release -p:PackageVersion=$(NugetPackageVersion)'
277+
script: 'dotnet build $(PathToCommunityToolkitCsproj) -c Release -p:PackageVersion=$(NugetPackageVersion)' -p:Version=$(NugetPackageVersion)'
278278

279279
- task: CmdLine@2
280280
displayName: 'Build CommunityToolkit.Maui.Camera'
281281
inputs:
282-
script: 'dotnet build $(PathToCommunityToolkitCameraCsproj) -c Release -p:PackageVersion=$(NugetPackageVersionCamera)'
282+
script: 'dotnet build $(PathToCommunityToolkitCameraCsproj) -c Release -p:PackageVersion=$(NugetPackageVersionCamera)' -p:Version=$(NugetPackageVersion)'
283283

284284
- task: CmdLine@2
285285
displayName: 'Build CommunityToolkit.Maui.MediaElement'
286286
inputs:
287-
script: 'dotnet build $(PathToCommunityToolkitMediaElementCsproj) -c Release -p:PackageVersion=$(NugetPackageVersionMediaElement)'
287+
script: 'dotnet build $(PathToCommunityToolkitMediaElementCsproj) -c Release -p:PackageVersion=$(NugetPackageVersionMediaElement)' -p:Version=$(NugetPackageVersion)'
288288

289289
- task: CmdLine@2
290290
displayName: 'Build CommunityToolkit.Maui.Maps'
291291
inputs:
292-
script: 'dotnet build $(PathToCommunityToolkitMapsCsproj) -c Release -p:PackageVersion=$(NugetPackageVersionMaps)'
292+
script: 'dotnet build $(PathToCommunityToolkitMapsCsproj) -c Release -p:PackageVersion=$(NugetPackageVersionMaps)' -p:Version=$(NugetPackageVersion)'
293293

294294
- task: CmdLine@2
295295
displayName: 'Run CommunityToolkit.Maui.Analyzers.UnitTests'
@@ -324,27 +324,27 @@ jobs:
324324
- task: CmdLine@2
325325
displayName: 'Pack CommunityToolkit.Maui.Core NuGet'
326326
inputs:
327-
script: 'dotnet pack $(PathToCommunityToolkitCoreCsproj) -c Release -p:PackageVersion=$(NugetPackageVersion)'
327+
script: 'dotnet pack $(PathToCommunityToolkitCoreCsproj) -c Release -p:PackageVersion=$(NugetPackageVersion)' -p:Version=$(NugetPackageVersion)'
328328

329329
- task: CmdLine@2
330330
displayName: 'Pack CommunityToolkit.Maui NuGet'
331331
inputs:
332-
script: 'dotnet pack $(PathToCommunityToolkitCsproj) -c Release -p:PackageVersion=$(NugetPackageVersion)'
332+
script: 'dotnet pack $(PathToCommunityToolkitCsproj) -c Release -p:PackageVersion=$(NugetPackageVersion)' -p:Version=$(NugetPackageVersion)'
333333

334334
- task: CmdLine@2
335335
displayName: 'Pack CommunityToolkit.Maui.Camera NuGet'
336336
inputs:
337-
script: 'dotnet pack $(PathToCommunityToolkitCameraCsproj) -c Release -p:PackageVersion=$(NugetPackageVersionCamera)'
337+
script: 'dotnet pack $(PathToCommunityToolkitCameraCsproj) -c Release -p:PackageVersion=$(NugetPackageVersionCamera)' -p:Version=$(NugetPackageVersion)'
338338

339339
- task: CmdLine@2
340340
displayName: 'Pack CommunityToolkit.Maui.MediaElement NuGet'
341341
inputs:
342-
script: 'dotnet pack $(PathToCommunityToolkitMediaElementCsproj) -c Release -p:PackageVersion=$(NugetPackageVersionMediaElement)'
342+
script: 'dotnet pack $(PathToCommunityToolkitMediaElementCsproj) -c Release -p:PackageVersion=$(NugetPackageVersionMediaElement)' -p:Version=$(NugetPackageVersion)'
343343

344344
- task: CmdLine@2
345345
displayName: 'Pack CommunityToolkit.Maui.Maps NuGet'
346346
inputs:
347-
script: 'dotnet pack $(PathToCommunityToolkitMapsCsproj) -c Release -p:PackageVersion=$(NugetPackageVersionMaps)'
347+
script: 'dotnet pack $(PathToCommunityToolkitMapsCsproj) -c Release -p:PackageVersion=$(NugetPackageVersionMaps)' -p:Version=$(NugetPackageVersion)'
348348

349349
# check vulnerabilities
350350
- powershell: |

0 commit comments

Comments
 (0)