Visual Studio for Mac 17.0 Previews and .NET on Apple Silicon machines
On Apple Silicon machines (also known as M1 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.
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:
Download the uninstall script from the .NET GitHub repository by right-clicking on the script and selecting Save As to save the file to your Mac.
Open Terminal and change the working directory to where the script was downloaded:
Make the script executable and then run it with sudo:
chmod +x dotnet-uninstall-pkgs.sh sudo ./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.