Skip to content

Align FindSdkManagerPath with FindCmdlineTool discovery order #12072

Description

@rmarinho

Summary

FindSdkManagerPath() in SdkManager.Packages.cs and FindCmdlineTool() in ProcessUtils.cs use different precedence when resolving cmdline-tools binaries:

Method Order Legacy tools/bin fallback
FindSdkManagerPath Versioned dirs first → latest fallback ✅ Yes
FindCmdlineTool latest first → versioned dirs fallback ❌ Removed

The FindCmdlineTool order (latest first, no legacy fallback) was set per @jonathanpeppers review in dotnet/android-tools#282. We should evaluate whether FindSdkManagerPath should be updated to match:

  1. Check latest first — it is the SDK's own recommended default
  2. Remove legacy tools/bin fallback — legacy tools have completely different CLI arguments

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    android-toolsIssues migrated from dotnet/android-tools / relates to the xamarin-android-tools subtreeneeds-triageIssues that need to be assigned.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions