Skip to content

Align FindSdkManagerPath with FindCmdlineTool discovery order #300

@rmarinho

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 #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

    No labels
    No labels

    Type

    No type
    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