Skip to content

Install dotnet skd on Mac m1 armx64ΒΆ

Follow the github link comment from robertsundstrom and chunghakngor

Remove installed runtimes and SDKs:

Bash Session
sudo rm -r /usr/local/share/dotnet
sudo rm -r /etc/dotnet

Then download the latest SDK installers:

.NET 6 (ARM64) .NET 6 (X64) .NET 5 (X64) .NET Core 3.1 (X64)

The previous versions have been doing updated with support for multi-architecture targeting.

Run the instwllers in the order of the list. From top to bottom.

Check /usr/local/share/dotnet/x64/sdk to see that the SDKs are there.

And also run:

Bash Session
cat /etc/dotnet

The directory should contain a file for each architecture containing the SDK path of each.

Keep in mind:

Bash Session
dotnet --list-sdks

Will only show .NET 6 on ARM64. The reason is that the dotnet command belongs to the Silicon/ARM64 SDK.

When run

Bash Session
dotnet --info

If it running on x64, then the RID is shown as osx-x64 and if it's arm64 it should be osx-arm64

If you change the symbolic link by removing the current one and changing it to the arm64. You can run the following commands:

Bash Session
rm /usr/local/bin/dotnet 
ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/dotnet 

While compiling the Project from Visual Studio if there is and error

Sharing violation on path /Volumes

Make sure to have all the project files in Apple formatted disk. There are some issues with ExFAT.

Note

Text Only
Make sure tye and dapr are installed and initialized again.