diff --git a/Directory.Build.props b/Directory.Build.props index 0f6420ed8b1..fac2a00698a 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -35,7 +35,10 @@ * 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) --> - 35.0.1 + 35.0.2 + $(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 c06a6b6000d..350e335688f 100644 --- a/build-tools/create-packs/Directory.Build.targets +++ b/build-tools/create-packs/Directory.Build.targets @@ -83,7 +83,7 @@ diff --git a/build-tools/scripts/XAVersionInfo.targets b/build-tools/scripts/XAVersionInfo.targets index f63744b88a0..48ee4b0f6f0 100644 --- a/build-tools/scripts/XAVersionInfo.targets +++ b/build-tools/scripts/XAVersionInfo.targets @@ -81,9 +81,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 +