Skip to content

Commit

Permalink
[arcade] Apps need to use ApplicationDisplayVersion for the version (#…
Browse files Browse the repository at this point in the history
…22472)

* Update to correct ExcludeMicrosoftNetTestSdk

* Better control the versioning for apps

---------

Co-authored-by: Rui Marinho <me@ruimarinho.net>
  • Loading branch information
mattleibow and rmarinho committed May 17, 2024
1 parent 756c90d commit f2cc45e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Maui.InTree.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@

</ImportGroup>

<!--
Workaround for Arcade versioning. We need to force the Arcade properties
to match the value in the csproj property ApplicationDisplayVersion.
-->
<PropertyGroup Condition="'$(ApplicationDisplayVersion)' != ''">
<_TempApplicationDisplayVersion>$(ApplicationDisplayVersion).0.0.0</_TempApplicationDisplayVersion>
<MajorVersion>$(_TempApplicationDisplayVersion.Split('.')[0])</MajorVersion>
<MinorVersion>$(_TempApplicationDisplayVersion.Split('.')[1])</MinorVersion>
<PatchVersion>$(_TempApplicationDisplayVersion.Split('.')[2])</PatchVersion>
<PreReleaseVersionLabel></PreReleaseVersionLabel>
<!-- App versions cannot be prerelease since they are 3 or 4 part numbers in manifests. -->
<DotNetFinalVersionKind>release</DotNetFinalVersionKind>
</PropertyGroup>

<!--
This is a targets file, but needs to go here as it must come after the csproj but before the NuGet packages.
In the release .NET MAUI SDK, this is imported by the workloads which puts it in the middle as well.
Expand Down

0 comments on commit f2cc45e

Please sign in to comment.