From 75fa85e6d824ff912276a3c5a0a63c84ea682a86 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Mon, 22 Sep 2025 15:49:56 -0500 Subject: [PATCH] [release/10.0.1xx] Use stable 36.0.x branding Context: https://github.com/dotnet/android/blame/release/9.0.1xx/Directory.Build.props Context: https://github.com/dotnet/android/commit/61a7677c076d25aa9dfd74331657bab0af2680b3 Context: https://github.com/dotnet/android/commit/0f2a3231c564b47acbbd4857c17ed9efe4bafcdc Brings in stable versioning changes from previous .NET 9 release branch. We've historically added a few new version properties to represent the stable version and calculate the patch delta. `$(AndroidPackVersion)` has been updated to "reset" the commit distance. --- Directory.Build.props | 7 +++++-- build-tools/create-packs/Directory.Build.targets | 2 +- build-tools/scripts/XAVersionInfo.targets | 5 +++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 15c2df2713d..c5dfedb146f 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -36,8 +36,11 @@ * Major/Minor match Android stable API level, such as 30.0 for API 30. * Bump first digit of the patch version for feature releases (and reset the first two digits to 0) --> - 36.0.0 - rc.2 + 36.0.1 + $(AndroidPackVersion.LastIndexOf(".")) + $(AndroidPackVersion.Substring(0,$(AndroidPackVersionPatchIndex))) + $(AndroidPackVersion.Substring($([MSBuild]::Add($(AndroidPackVersionPatchIndex), 1)))) + rtm false diff --git a/build-tools/create-packs/Directory.Build.targets b/build-tools/create-packs/Directory.Build.targets index 20b0af19e81..72640fc3aff 100644 --- a/build-tools/create-packs/Directory.Build.targets +++ b/build-tools/create-packs/Directory.Build.targets @@ -77,7 +77,7 @@ diff --git a/build-tools/scripts/XAVersionInfo.targets b/build-tools/scripts/XAVersionInfo.targets index 292b67cf41b..6dbdce840f2 100644 --- a/build-tools/scripts/XAVersionInfo.targets +++ b/build-tools/scripts/XAVersionInfo.targets @@ -82,9 +82,10 @@ <_AndroidPackBranch>$([System.Text.RegularExpressions.Regex]::Replace('$(XAVersionBranch)', '[^a-zA-Z0-9-]', '-')) <_AndroidPackLabel Condition=" '$(_AndroidPackLabel)' == '' and $(XAVersionBranch.StartsWith('release/'))">$(AndroidPackVersionSuffix).$(PackVersionCommitCount) <_AndroidPackLabel Condition=" '$(_AndroidPackLabel)' == '' ">ci.$(_AndroidPackBranch).$(PackVersionCommitCount) - $(AndroidPackVersion)-$(_AndroidPackLabel) - $(AndroidPackVersion).$(PackVersionCommitCount) + $(AndroidPackVersionMajorMinor).$([MSBuild]::Add($(AndroidPackVersionPatch), $(PackVersionCommitCount))) + $(AndroidPackVersionLong).0 true +