Install dotnet skd on Mac m1 armx64ΒΆ
Follow the github link comment from robertsundstrom and chunghakngor
Remove installed runtimes and SDKs:
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:
The directory should contain a file for each architecture containing the SDK path of each.
Keep in mind:
Will only show .NET 6 on ARM64. The reason is that the dotnet command belongs to the Silicon/ARM64 SDK.
When run
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:
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
Make sure tye and dapr are installed and initialized again.