Skip to content

Commit e6002f8

Browse files
[release/7.0.1xx] stable 33.0.x branding (#7453)
Context: 4c460a8 This brings 4c460a8 to .NET 7, so our versioning will be stable with .NET 7 GA. We will start out with 33.0.1, and each commit increments by 1. We have to reset `$(AndroidPackVersion) ` so it will "reset" the commit distance. Co-authored-by: Peter Collins <pecolli@microsoft.com>
1 parent 30bfeaf commit e6002f8

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Directory.Build.props

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838
* Major/Minor match Android stable API level, such as 30.0 for API 30.
3939
* Bump first digit of the patch version for feature releases (and reset the first two digits to 0)
4040
-->
41-
<AndroidPackVersion>33.0.0</AndroidPackVersion>
41+
<AndroidPackVersion>33.0.1</AndroidPackVersion>
42+
<AndroidPackVersionPatchIndex>$(AndroidPackVersion.LastIndexOf("."))</AndroidPackVersionPatchIndex>
43+
<AndroidPackVersionMajorMinor>$(AndroidPackVersion.Substring(0,$(AndroidPackVersionPatchIndex)))</AndroidPackVersionMajorMinor>
44+
<AndroidPackVersionPatch>$(AndroidPackVersion.Substring($([MSBuild]::Add($(AndroidPackVersionPatchIndex), 1))))</AndroidPackVersionPatch>
4245
<AndroidPackVersionSuffix>rtm</AndroidPackVersionSuffix>
4346
</PropertyGroup>
4447

build-tools/create-packs/Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<ReplaceFileContents
8686
SourceFile="vs-workload.in.props"
8787
DestinationFile="$(XamarinAndroidSourcePath)bin\Build$(Configuration)\nuget-unsigned\vs-workload.props"
88-
Replacements="@PACK_VERSION_LONG@=$(AndroidPackVersionLong);@PACK_VERSION_SHORT@=$(AndroidMSIVersion);@WORKLOAD_VERSION@=$(AndroidMSIVersion);@VSMAN_VERSION@=$(DotNetTargetFramework)"
88+
Replacements="@PACK_VERSION_LONG@=$(AndroidPackVersionLong);@PACK_VERSION_SHORT@=$(AndroidPackVersionLong);@WORKLOAD_VERSION@=$(AndroidMSIVersion);@VSMAN_VERSION@=$(DotNetTargetFramework)"
8989
/>
9090
</Target>
9191

build-tools/scripts/XAVersionInfo.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@
8585
<_AndroidPackBranch>$([System.Text.RegularExpressions.Regex]::Replace('$(XAVersionBranch)', '[^a-zA-Z0-9-]', '-'))</_AndroidPackBranch>
8686
<_AndroidPackLabel Condition=" '$(_AndroidPackLabel)' == '' and ('$(XAVersionBranch)' == 'main' or $(XAVersionBranch.StartsWith('release/')))">$(AndroidPackVersionSuffix).$(PackVersionCommitCount)</_AndroidPackLabel>
8787
<_AndroidPackLabel Condition=" '$(_AndroidPackLabel)' == '' ">ci.$(_AndroidPackBranch).$(PackVersionCommitCount)</_AndroidPackLabel>
88-
<AndroidPackVersionLong>$(AndroidPackVersion)-$(_AndroidPackLabel)</AndroidPackVersionLong>
89-
<AndroidMSIVersion>$(AndroidPackVersion).$(PackVersionCommitCount)</AndroidMSIVersion>
88+
<AndroidPackVersionLong>$(AndroidPackVersionMajorMinor).$([MSBuild]::Add($(AndroidPackVersionPatch), $(PackVersionCommitCount)))</AndroidPackVersionLong>
89+
<AndroidMSIVersion>$(AndroidPackVersionLong).0</AndroidMSIVersion>
9090
</PropertyGroup>
9191
</Target>
9292
</Project>

0 commit comments

Comments
 (0)