Putting back the valuable one-line installation script examples.

This commit is contained in:
John Beisner 2017-09-07 17:26:01 -07:00
parent 80c6635fdb
commit 26dba14391

View file

@ -17,6 +17,8 @@ Obtaining .NET CLI
* [Acquisition modes](#acquisition-modes)
* [Native installers](#native-installers)
* [Installation script](#installation-script)
* [Windows one-liner](#windows-command)
* [OSX/Linux one-liner](#osxlinux-shell-command)
* [Complete manual installation](#complete-manual-installation)
* [Docker](#docker)
* [NuGet Packages](#nuget-packages)
@ -256,6 +258,18 @@ OSX/Linux:
./dotnet-install.sh --channel 2.0
```
#### Windows obtain one-liner example
```
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&([scriptblock]::Create((Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1'))) <additional installation-script args>"
```
#### OSX/Linux obtain one-liner
```
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin <additional installation-script args>
```
### Docker
[Docker](https://docs.docker.com/) has become a pretty good way to use developer tools, from trying them out in an interactive image use to using it for deployment. We have Docker images on DockerHub already.