updating as per conversation
This commit is contained in:
parent
ae2d32f9ba
commit
10d0a8a4f7
|
@ -39,20 +39,6 @@ The [.NET Core Docker images](https://hub.docker.com/r/microsoft/dotnet/) have b
|
|||
|
||||
## Installing .NET Core on Linux
|
||||
|
||||
### Install using Snap
|
||||
|
||||
Snap is a system which installs applications in an isolated environment and provides for automatic updates. Many distributions which are not directly supported by .NET Core can use Snaps to install. See the [list of distributions supported Snap](https://docs.snapcraft.io/installing-snapd/6735) for details.
|
||||
|
||||
After configuring Snap on your system, run the following command to install the latest .NET Core SDK.
|
||||
|
||||
`sudo snap install dotnet-sdk --channel 2.1/stable --classic`
|
||||
|
||||
When .NET Core in installed using the Snap package, the default .NET Core command is `dotnet-sdk.dotnet`, as opposed to just `dotnet`. The benefit of the namespaced command is that it will not conflict with a globally installed .NET Core version you may have. This command can be aliased to `dotnet` with:
|
||||
|
||||
`sudo snap alias dotnet-sdk.dotnet dotnet`
|
||||
|
||||
**Note:** Some distros require an additional step to enable access to the SSL certificate. If you experience SSL errors when running `dotnet restore`, see [Linux Setup](https://github.com/dotnet/core/blob/master/Documentation/linux-setup.md) for a possible resolution.
|
||||
|
||||
### Install using a Package Manager
|
||||
|
||||
Before installing .NET, you will need to register the Microsoft key, register the product repository, and install required dependencies. This only needs to be done once per machine. Refer to [Setting up Linux for .NET Core][linux-setup] for the requirements.
|
||||
|
@ -72,7 +58,7 @@ To develop applications using the .NET Core SDK, run the following command. The
|
|||
|
||||
```bash
|
||||
sudo [package manager] update or refresh
|
||||
sudo [package manager] install dotnet-sdk-2.1
|
||||
sudo [package manager] install dotnet-sdk-2.1.610
|
||||
```
|
||||
|
||||
## Run applications
|
||||
|
|
|
@ -45,7 +45,7 @@ Snap is a system which installs applications in an isolated environment and prov
|
|||
|
||||
After configuring Snap on your system, run the following command to install the latest .NET Core SDK.
|
||||
|
||||
`sudo snap install dotnet-sdk --channel 3.1/stable –classic`
|
||||
`sudo snap install dotnet-sdk --channel 3.1/stable –-classic`
|
||||
|
||||
When .NET Core in installed using the Snap package, the default .NET Core command is `dotnet-sdk.dotnet`, as opposed to just `dotnet`. The benefit of the namespaced command is that it will not conflict with a globally installed .NET Core version you may have. This command can be aliased to `dotnet` with:
|
||||
|
||||
|
@ -96,7 +96,7 @@ export PATH=$PATH:$HOME/dotnet
|
|||
|
||||
## .NET Core Runtime-only installation
|
||||
|
||||
If only the .NET Core Runtime is needed, install `dotnet-runtime-3.1` using your package manager. If you also need ASP.NET Core functionality, installing `aspnetcore-runtime-2.1` will install both the ASP Runtime and .NET Core Runtime.
|
||||
If only the .NET Core Runtime is needed, install `dotnet-runtime-3.1` using your package manager. If you also need ASP.NET Core functionality, installing `aspnetcore-runtime-3.1` will install both the ASP Runtime and .NET Core Runtime.
|
||||
|
||||
## Windows Server Hosting
|
||||
|
||||
|
|
Loading…
Reference in a new issue