Skip to content

M1/M2 Mac Dotnet Build  #13

@saj122

Description

@saj122

For M1/M2 Mac there’s two versions of Dotnet SDK 6. The new arm dotnet package is only for arm. One is for arm64 and one is for x64. Running with the arm64 version, even though its built with x64, will fail. You have to build with the x64 version and run with that. After installing arm64 dotnet and x64, you get two executables. One is dotnet (arm) and the other is dotnetx64. You may have to rename the x64 dotnet executable so they don't conflict. The install folder locations are listed below.

dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.401
Commit: 0906eae6f8

Runtime Environment:
OS Name: Mac OS X
OS Version: 13.1
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/6.0.401/

dotnetx64 --info
.NET SDK (reflecting any global.json):
Version: 6.0.405
Commit: 27ab36058b

Runtime Environment:
OS Name: Mac OS X
OS Version: 13.1
OS Platform: Darwin
RID: osx-x64
Base Path: /usr/local/share/dotnet/x64/sdk/6.0.405/

arm64 install pkg:
https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-6.0.405-macos-arm64-installer

x64 install pkg:
https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-6.0.405-macos-x64-installer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions