80 lines
4.7 KiB
Markdown
80 lines
4.7 KiB
Markdown
# .NET 5.0.0 Preview 3
|
|
|
|
.NET 5.0.0 Preview 3 comprises:
|
|
|
|
* .NET Runtime 5.0.0-preview.3.20214.6
|
|
* ASP.NET Core 5.0.0-preview.3.20215.14
|
|
* .NET SDK 5.0.100-preview.3.20216.1
|
|
|
|
See the [Release Notes][release-notes] for details about what is included in this update.
|
|
|
|
## Docker
|
|
|
|
The [.NET Docker images](https://hub.docker.com/r/microsoft/dotnet/) have been updated for this release. Details on our Docker versioning and how to work with the images can be seen in ["Staying up-to-date with .NET Container Images"](https://devblogs.microsoft.com/dotnet/staying-up-to-date-with-net-container-images/).
|
|
|
|
## Install .NET on Linux
|
|
|
|
### Install using Snap
|
|
|
|
Because of the isolated environment, using Snap is the preferred way to install and try .NET Previews on [Linux distributions that support Snap](https://docs.snapcraft.io/installing-snapd/6735).
|
|
|
|
After configuring Snap on your system, run the following command to install the latest .NET Core SDK.
|
|
|
|
`sudo snap install dotnet-sdk --channel=5.0/beta --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 distributions 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 deb/rpm packages
|
|
|
|
Preview release installers are not available from the Microsoft package repositories. The steps below provide an easy way to install .NET 5 Preview 3 using your Distro package manager.
|
|
|
|
**Note:** `curl` must be available on the system before running the following steps. Once you have confirmed that `curl` is available, complete the steps to download and install the .NET 5 Preview 3 SDK and Runtime.
|
|
|
|
1. Create a directory to use for the download location and change into that directory. For example `mkdir $HOME/dotnet_install && cd $HOME/dotnet_install`
|
|
2. Run `curl -H 'Cache-Control: no-cache' -L https://aka.ms/install-dotnet-preview -o install-dotnet-preview.sh`
|
|
3. Run the script with `sudo bash install-dotnet-preview.sh`
|
|
|
|
Here's what the script does.
|
|
|
|
* Detects the distribution and version. If it's in the [5.0 Supported OS](https://github.com/dotnet/core/blob/master/release-notes/5.0/5.0-supported-os.md) list, the script will continue.
|
|
* Determines if additional system dependencies or utilities are needed to successfully complete and install them. For example `tar` is used to unpack that installer packages.
|
|
* Downloads the tar.gz containing the .NET preview installer packages for the detected distribution.
|
|
* Downloads the system dependency installer, if needed.
|
|
* Expands the tar.gz into ./dotnet_packages
|
|
* Attempts to install the contents of ./dotnet_packages using `rpm` or `dpkg`, as appropriate, for the detected distribution.
|
|
|
|
### Installation from a binary archive
|
|
|
|
Installing from the packages detailed above is recommended or you can install from binary archive, if that better suits your needs. When using binary archives to install, the contents must be extracted to a user location such as `$HOME/dotnet`, a symbolic link created for `dotnet` and a few dependencies installed. Dependency requirements can be seen in the [Linux System Prerequisites](https://github.com/dotnet/core/blob/master/Documentation/linux-prereqs.md) document.
|
|
|
|
```bash
|
|
mkdir -p $HOME/dotnet && tar zxf dotnet.tar.gz -C $HOME/dotnet
|
|
export PATH=$PATH:$HOME/dotnet
|
|
```
|
|
|
|
## .NET Core Runtime-only installation
|
|
|
|
If only the .NET Core Runtime is needed, install `dotnet-runtime-5.0` using your package manager. If you also need ASP.NET Core functionality, installing `aspnetcore-runtime-5.0` will install both the ASP Runtime and .NET Core Runtime.
|
|
|
|
## Windows Server Hosting
|
|
|
|
If you are looking to host stand-alone apps on Servers, the following installer can be used on Windows systems.
|
|
|
|
### Windows
|
|
|
|
You can download the Windows Server Hosting installer and run the following command from an Administrator command prompt:
|
|
|
|
* [dotnet-hosting-5.0.0-preview.3.exe][dotnet-hosting-win.exe]
|
|
|
|
This will install the ASP.NET Core Module for IIS.
|
|
|
|
[blob-runtime]: https://dotnetcli.blob.core.windows.net/dotnet/Runtime/
|
|
[blob-sdk]: https://dotnetcli.blob.core.windows.net/dotnet/Sdk/
|
|
[release-notes]: https://github.com/dotnet/core/blob/master/release-notes/5.0/preview/5.0.0-preview.3.md
|
|
|
|
|
|
[dotnet-hosting-win.exe]: https://download.visualstudio.microsoft.com/download/pr/f84dffc7-f825-47d4-aad5-f3af1444ecc1/935d1397344d5179cf210787d6435c44/dotnet-hosting-5.0.0-preview.3.20215.14-win.exe
|