Skip to content

Commit 9741f1a

Browse files
authored
Version Toolkit assemblies alike the NuGet package version (#2328)
1 parent 32059ec commit 9741f1a

File tree

6 files changed

+10
-20
lines changed

6 files changed

+10
-20
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: |

src/CommunityToolkit.Maui.Camera/CommunityToolkit.Maui.Camera.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
<Description>Camera contains CameraView, a view for displaying a preview of the camera output and other camera related functionalities in your .NET MAUI app.</Description>
3737
<PackageIcon>icon.png</PackageIcon>
3838
<Product>$(AssemblyName) ($(TargetFramework))</Product>
39-
<AssemblyVersion>1.0.0.0</AssemblyVersion>
40-
<AssemblyFileVersion>1.0.0.0</AssemblyFileVersion>
4139
<Version>1.0.0-pre1</Version>
4240
<PackageVersion>$(Version)$(VersionSuffix)</PackageVersion>
4341
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>

src/CommunityToolkit.Maui.Core/CommunityToolkit.Maui.Core.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
<Description>Core library for community toolkits using .NET MAUI</Description>
3636
<PackageIcon>icon.png</PackageIcon>
3737
<Product>$(AssemblyName) ($(TargetFramework))</Product>
38-
<AssemblyVersion>1.0.0.0</AssemblyVersion>
39-
<AssemblyFileVersion>1.0.0.0</AssemblyFileVersion>
4038
<Version>1.0.0-pre1</Version>
4139
<PackageVersion>$(Version)$(VersionSuffix)</PackageVersion>
4240
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>

src/CommunityToolkit.Maui.Maps/CommunityToolkit.Maui.Maps.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
<Description>The .NET MAUI Community Maps Toolkit is a collection of Maps</Description>
3636
<PackageIcon>icon.png</PackageIcon>
3737
<Product>$(AssemblyName) ($(TargetFramework))</Product>
38-
<AssemblyVersion>1.0.0.0</AssemblyVersion>
39-
<AssemblyFileVersion>1.0.0.0</AssemblyFileVersion>
4038
<Version>1.0.0-pre1</Version>
4139
<PackageVersion>$(Version)$(VersionSuffix)</PackageVersion>
4240
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>

src/CommunityToolkit.Maui.MediaElement/CommunityToolkit.Maui.MediaElement.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
<Description>MediaElement is a view for playing video and audio in your .NET MAUI app.</Description>
3838
<PackageIcon>icon.png</PackageIcon>
3939
<Product>$(AssemblyName) ($(TargetFramework))</Product>
40-
<AssemblyVersion>1.0.0.0</AssemblyVersion>
41-
<AssemblyFileVersion>1.0.0.0</AssemblyFileVersion>
4240
<Version>1.0.0-pre1</Version>
4341
<PackageVersion>$(Version)$(VersionSuffix)</PackageVersion>
4442
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>

src/CommunityToolkit.Maui/CommunityToolkit.Maui.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
<Description>The .NET MAUI Community Toolkit is a collection of Animations, Behaviors, Converters, and Custom Views for development with .NET MAUI. It simplifies and demonstrates common developer tasks building iOS, Android, macOS and Windows apps with .NET MAUI.</Description>
3939
<PackageIcon>icon.png</PackageIcon>
4040
<Product>$(AssemblyName) ($(TargetFramework))</Product>
41-
<AssemblyVersion>1.0.0.0</AssemblyVersion>
42-
<AssemblyFileVersion>1.0.0.0</AssemblyFileVersion>
4341
<Version>1.0.0-pre1</Version>
4442
<PackageVersion>$(Version)$(VersionSuffix)</PackageVersion>
4543
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>

0 commit comments

Comments
 (0)