.NET 6.0.0 Preview 3 comprises:
- .NET Runtime 6.0.0-preview.3.21201.4
- ASP.NET Core 6.0.0-preview.3.21201.13
- .NET SDK 6.0.100-preview.3.21202.5
- Windowsdesktop 6.0.0-preview.3.21201.3
See the Release Notes for details about what is included in this update.
.NET container images have been updated for this release. Staying safe with .NET containers provides insight and guidance on managing container images, with respect to pedigree, provenance and CVE management.
Because of the isolated environment, using Snap is the preferred way to install and try .NET Previews on Linux distributions that support Snap.
After configuring Snap on your system, run the following command to install the latest .NET Core SDK.
sudo snap install dotnet-sdk --channel=6.0/beta --classic
When .NET Core is 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 .NET for Linux Distributions for a possible resolution.
Preview release installers are not available from the Microsoft package repositories. The steps below provide an easy way to install .NET 6 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 latest .NET 6 Preview SDK and Runtime.
- Create a directory to use for the download location and change into that directory. For example
mkdir $HOME/dotnet_install && cd $HOME/dotnet_install
- Run
curl -L https://aka.ms/install-dotnet-preview -o install-dotnet-preview.sh
- Run the script with
sudo bash install-dotnet-preview.sh
Here's what the script does.
- Detects the distribution and version. The script supports platforms and versions listed in .NET 6.0 - Supported OS versions.
- 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_pacakges
- Attempts to install the contents of ./dotnet_packages using
rpm
ordpkg
, as appropriate, for the detected distribution.
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 document.
mkdir -p $HOME/dotnet && tar zxf dotnet.tar.gz -C $HOME/dotnet
export PATH=$PATH:$HOME/dotnet
If only the .NET Core Runtime is needed, install dotnet-runtime-6.0
using your package manager. If you also need ASP.NET Core functionality, installing aspnetcore-runtime-6.0
will install both the ASP Runtime and .NET Core Runtime.
If you are looking to host stand-alone apps on Servers, the following installer can be used on Windows systems.
You can download the Windows Server Hosting installer and run the following command from an Administrator command prompt:
This will install the ASP.NET Core Module for IIS.
See the net6-mobile-samples repo for sample projects and further details about getting started.
Projects will need to add additional NuGet feeds. An example NuGet.config
file would be:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<!-- ensure only the sources defined below are used -->
<add key="dotnet6" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" />
<add key="xamarin" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/xamarin-impl/nuget/v3/index.json" />
</packageSources>
</configuration>
Prerequisites:
- Install .NET 6.0.0 Preview 3
- You will need the Android SDK installed as well as
Android SDK Platform 30
. One way to acquire this is to install the Xamarin workload in the Visual Studio installer. You can manage Android SDKs fromTools > Android > Android SDK Manager
from within Visual Studio.
Prerequisites:
- Install .NET 6.0.0 Preview 3
- Xcode 12.4