My first installment of “#ItWouldHaveBeenNice”

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:

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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.