Install .NET 6 SDK Manually on M1 Mac
2 min readJan 15, 2021
I didn’t have so much luck with the alpha dotnet installer yet on my M1 MacBook Pro — so here is the attempt at installing using the .net 6 SDK .tar.gz
The instructions from previous versions will likely still apply:
- Download the latest .tar.gz from the nightly builds page
- Extract the .tar into $HOME/dotnet
% mkdir -p "$HOME/dotnet" && tar zxf dotnet-sdk-6.0.100-alpha.1.21065.7-osx-arm64.tar -c "$HOME/dotnet"
3. set DOTNET_ROOT and PATH environment variables
% export DOTNET_ROOT=$HOME/dotnet
% export PATH=$PATH:$HOME/dotnet
4. check dotnet version
% dotnet --version6.0.100-alpha.1.21065.7
5. It works! 🥳
6. Run through quick hello world example
% dotnet new console -o myAppWelcome to .NET 6.0!---------------------SDK Version: 6.0.100-alpha.1.21065.7Telemetry---------The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry----------------Installed an ASP.NET Core HTTPS development certificate.To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).Learn about HTTPS: https://aka.ms/dotnet-https----------------Write your first app: https://aka.ms/dotnet-hello-worldFind out what's new: https://aka.ms/dotnet-whats-newExplore documentation: https://aka.ms/dotnet-docsReport issues and find source on GitHub: https://github.com/dotnet/coreUse 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli--------------------------------------------------------------------------------------Getting ready...The template "Console Application" was created successfully.Processing post-creation actions...Running 'dotnet restore' on myApp/myApp.csproj...Determining projects to restore...Restored myApp/myApp.csproj (in 109 ms).Restore succeeded.
Let’s see if it can run!
% cd myApp
% dotnet runHello World!
Success! 🎉