Global tool to make installing .NET Core versions that little bit easier
To install globally:
$ dotnet tool install -g installsdkglobaltool
You can also find InstallSdkGlobalTool on NuGet here.
You can use this tool to download and install .NET Core SDK versions based on a variety of ways, these are:
- Navigate to any directory within your .NET Core application that has a
global.json
file. - Run
$ dotnet-install-sdk
The .NET Core Install SDK global tool will then scan the project directories for a global.json file. If found it will download and install the SDK dictated by the global.json file.
- Run
$ dotnet-install-sdk --latest-preview
from any directory
The .NET core Install SDK global tool will then download and lauch the installer for the latest preview of the .NET Core SDK.
$ dotnet-install-sdk -h
Usage: DotNetInstallSdk [options]
Options:
-LP|--latest-preview Optional. Install the latest preview version of the .NET Core SDK
-H|--headless <Boolean> Optional. Install .NET Core SDK in headless mode (default is true)
-?|-h|--help Show help information
Big thanks to @stuartblang who contributed loads to this.