Debugging .NET 5 apps on your M1 Mac

In this short article, I’ll show you how to install .NET 5 on your M1 Mac and demonstrate how to debug your apps using VS Code and VS For Mac.

With macOS Big Sur 11.2 Beta 2, Apple fixed some of the bugs related to debugging your .NET 5 apps on M1 Macs, this allows you to debug .NET applications using VS Code, VS for Mac and even JetBrains Rider through the Rosetta 2 x86-to-ARM translator.

First, your Mac needs to be enrolled into the Beta program. This requires registering your Apple ID and downloading a tool that gives you access to beta builds of Big Sur. After installing that, your M1 Mac should be able to search for updates, on which you should get 11.2 Beta 2.

After installing the beta, download .NET 5 from the official website (macOS, x64).

You should now be able to run and debug .NET 5 apps on you M1 machine.

dotnet new on M1 Mac
dotnet run on M1 Mac
debugging .NET 5 in VS Code

^ This also works with VS Code insiders built for M1!

debugging .NET 5 in VS for Mac



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store