dotnet core

installing dotnet core sdk via powershell

The following will install both the sdk & runtime for a specific version:

# install dotnet core sdk
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1' -OutFile dotnet-install.ps1
.\dotnet-install.ps1 -Version 2.2.203 -InstallDir 'C:\Program Files\dotnet'

To do the same but from a nightly (master) use --Channel master.

.\dotnet-install.ps1 -Channel master -InstallDir 'C:\Program Files\dotnet'

More info on dotnet-install.ps1.

Endpoint configuration

Specify URLs using ASPNETCORE_URLS environment variable or --urls command-line argument.