Visual Studio for Mac 17.0 Previews and .NET on Apple Silicon machines
Applies to: Visual Studio for Mac Visual Studio
On Apple Silicon machines (also known as M1, M2, or ARM) with older x64 SDKs installed, you'll need to remove all existing .NET installations in order to use the .NET 6 GA Arm64 SDK.
Note
This information is specific for Visual Studio for Mac 2022 Preview (17.0) versions. For information on this process for Visual Studio for Mac 2019 versions, see Visual Studio for Mac 8.10 and .NET on Apple Silicon machines for details.
Uninstall .NET from your machine:
Use this uninstall script to remove all existing .NET installations. Open Terminal and run the following:
sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/dotnet/sdk/main/scripts/obtain/uninstall/dotnet-uninstall-pkgs.sh)"
sudo rm -r /etc/dotnet
Install supported .NET SDKs
- Install the .NET 6 Arm64 SDK
- Restart Visual Studio for Mac for it to detect the new SDK installed.