Skip to content

Rename package to Xamarin.Apple.Tools.MaciOS and add GitInfo versioning#162

Merged
rmarinho merged 2 commits intomainfrom
feature/new-packagename
Mar 4, 2026
Merged

Rename package to Xamarin.Apple.Tools.MaciOS and add GitInfo versioning#162
rmarinho merged 2 commits intomainfrom
feature/new-packagename

Conversation

@rmarinho
Copy link
Copy Markdown
Member

@rmarinho rmarinho commented Mar 3, 2026

Summary

Rename the NuGet package from \Xamarin.MacDev\ to \Xamarin.Apple.Tools.MaciOS\ to align with the naming convention used by \Xamarin.Android.Tools.AndroidSdk, and add GitInfo-based versioning matching the android-tools pattern.

Changes

Package Rename

  • Set \PackageId, \AssemblyName, and \Title\ to \Xamarin.Apple.Tools.MaciOS\ in the csproj
  • Updated \AssemblyTitle\ in \AssemblyInfo.cs\
  • C# namespace remains \Xamarin.MacDev\ (no breaking API change)

GitInfo Versioning

  • Added \Directory.Build.targets\ with GitInfo v2.1.2 (same as android-tools)
  • Added \GitInfo.txt\ with base version \1.0\
  • Package version computed as \1.0.{commit-count}\ with git SHA in metadata
  • \InformationalVersion\ includes git commit and branch info

Downstream Impact

  • \dotnet/maui\ DevTools CLI needs to update \PackageReference\ from \Xamarin.MacDev\ → \Xamarin.Apple.Tools.MaciOS\

rmarinho and others added 2 commits March 3, 2026 18:02
Add Directory.Build.targets with GitInfo NuGet package for automatic
semantic versioning from git tags/commit count. Add GitInfo.txt with
base version 1.0. Package version will be 1.0.{commit-count}.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("Xamarin.MacDev")]
[assembly: AssemblyTitle ("Xamarin.Apple.Tools.MaciOS")]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eventually I think we'll want to move away from naming anything "Xamarin", but we don't have to do that now.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot can you create a issue for tracking this ?

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 4, 2026

@rmarinho I've opened a new pull request, #163, to work on those changes. Once the pull request is ready, I'll request review from you.

@rmarinho rmarinho merged commit 7f7e17d into main Mar 4, 2026
4 of 7 checks passed
@rmarinho rmarinho deleted the feature/new-packagename branch March 4, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants