Skip to content

Install: measure dotnet tool install without --framework on Windows Arm64 and macOS Arm64 before the first release #20

Open

Description

@Blind-Striker

What is known

The acquisition tests install the tool with dotnet tool install OpenCodeDotNet.Mcp --version <version> --tool-path <path> --configfile <config> --framework net10.0, against a feed that holds only this product's seven packages. The --framework net10.0 argument is required on two of the six supported hosts.

Same code except the argument, same day, hosted runners, .NET SDK 10.0.404:

Host with --framework net10.0 without
win-arm64 pass fail
osx-arm64 pass fail
linux-arm64 pass pass
win-x64, linux-x64, osx-x64 pass pass

The failure on Windows Arm64:

Tool-path installation failed: Unhandled exception: One or more errors occurred. (microsoft.netcore.app.host.win-x64 is not found in NuGet feeds C:\a\opencode-mcp\opencode-mcp\artifacts\feed.)

macOS Arm64 fails the same way with microsoft.netcore.app.host.osx-x64.

Without the argument, the SDK asks for the x64 apphost pack on these two hosts. A feed that holds only this product's packages cannot supply it. With the argument, the SDK does not ask for it and installs the Arm64 implementation package. The cold dotnet dnx route has no such argument and passes on all six hosts.

What is not known

What does dotnet tool install OpenCodeDotNet.Mcp without --framework do on Windows Arm64 and macOS Arm64 when the apphost pack is available (nuget.org reachable)?

  • Does the installation succeed?
  • Which implementation package does it select, and which architecture runs afterwards: the native Arm64 entry, or an x64 one under emulation?
  • Is the installed command the same shim as with the argument?

Why it matters

The user-facing install command is written before the first release. It must be the command that was measured on these two hosts, with or without the argument.

Done when

  • The plain installation without --framework is measured on Windows Arm64 and macOS Arm64 with nuget.org reachable, and the result (exit code, selected package, running architecture) is recorded.
  • The README install command is written from that result.

Refs #19.

Activity

  1. Blind-Striker commented on Nov 14, 2026

    @Blind-Striker
    ContributorAuthor

    Measured (2026-11-14)

    The plain installation without --framework succeeds on both hosts when nuget.org is reachable, and it installs and runs the native Arm64 implementation.

    Inputs: the seven packages of version 0.1.0-preview.1 from the native-package-feed of Native run 43542873558 (pull request #23), in a NuGet configuration with that feed and nuget.org. .NET SDK 10.0.404 in an Arm64 SDK process (dotnet --info: RID: osx-arm64 / RID: win-arm64, Architecture: arm64). Every install ran cold, with its own owned DOTNET_CLI_HOME and NuGet package, HTTP, plugin and scratch stores, so -g wrote into an owned directory; the real ~/.dotnet/tools was unchanged afterwards.

    Hosts: macOS Arm64 (Apple M1, macOS 27.2) and the hosted windows-11-arm runner (run 43572437414, a temporary probe branch that is deleted after this record).

    Host Command Exit Implementation package Entry Entry digest found in the evidence of
    osx-arm64 dotnet tool install -g OpenCodeDotNet.Mcp --version 0.1.0-preview.1 0 opencodedotnet.mcp.osx-arm64 Mach-O arm64 osx-arm64 only
    osx-arm64 same with --tool-path <dir> 0 opencodedotnet.mcp.osx-arm64 Mach-O arm64 osx-arm64 only
    osx-arm64 both commands with --framework net10.0 0 opencodedotnet.mcp.osx-arm64 Mach-O arm64 osx-arm64 only
    win-arm64 dotnet tool install -g OpenCodeDotNet.Mcp --version 0.1.0-preview.1 0 opencodedotnet.mcp.win-arm64 PE arm64 win-arm64 only
    win-arm64 same with --tool-path <dir> 0 opencodedotnet.mcp.win-arm64 PE arm64 win-arm64 only
    win-arm64 both commands with --framework net10.0 0 opencodedotnet.mcp.win-arm64 PE arm64 win-arm64 only
    • The installed command is the same shim with and without the argument: on macOS a symbolic link to .store/opencodedotnet.mcp/0.1.0-preview.1/opencodedotnet.mcp.osx-arm64/0.1.0-preview.1/tools/any/osx-arm64/opencode-mcp; on Windows a .cmd file that runs "%~dp0.store\opencodedotnet.mcp\0.1.0-preview.1\opencodedotnet.mcp.win-arm64\0.1.0-preview.1\tools\any\win-arm64\opencode-mcp.exe" %*.
    • Running architecture: the entry the shim launches is the Arm64 image (Mach-O CPU_TYPE_ARM64, PE machine 0xAA64), and its SHA-256 equals the command digest in the feed's evidence for that RID and no other. So no x64 entry runs under emulation.
    • It starts: each installed command, started with --transport stdio, answered a JSON-RPC request on standard output.

    What follows

    • The README install command can be the plain dotnet tool install -g OpenCodeDotNet.Mcp --version <version> (and dnx, which already passed on all six hosts). It is written with the consumer documentation of the distribution work.
    • The acquisition tests keep --framework net10.0: they install from a feed that holds only this product's packages, where the argument is still needed on these two hosts.
    • The global install and the published channels are verified again on all six hosted RIDs against the real channels once they exist.

    This issue stays open until the README carries the command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions