MS gave us the URL to install and run Powershell script to add all of the versions of .NET core into my computer with one command. However, what they gave us is a url, that if you are not fluent in PowerShell Script, you won’t have a clue to install, because pasting the URL doesn’t do it.
So here is the solution that #ItWouldHaveBeenNice if Microsoft would have supplied that themselves.
invoke-webrequest https://dotnet.microsoft.com/download/dotnet-core/scripts/v1/dotnet-install.ps1 -OutFile 'dotnet-install.ps1'; ./dotnet-install.ps1 -InstallDir '~/.dotnet'
Here are the pages that I used to get this info:
- https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script
- https://dotnet.microsoft.com/download/dotnet-core/scripts
Of course, you can manually install the individual packages, from the install list at https://dotnet.microsoft.com/download/dotnet/5.0, or if this is post .NET 5 when you read this post, the URL might be https://dotnet.microsoft.com/download/dotnet at that time.