Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M1/M2 Mac Dotnet Build #13

Open
saj122 opened this issue Jan 23, 2023 · 0 comments
Open

M1/M2 Mac Dotnet Build #13

saj122 opened this issue Jan 23, 2023 · 0 comments

Comments

@saj122
Copy link
Collaborator

saj122 commented Jan 23, 2023

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

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

No branches or pull requests

1 participant