Skip to content

Latest commit

 

History

History
34 lines (18 loc) · 2.44 KB

dotnet-ubuntu.md

File metadata and controls

34 lines (18 loc) · 2.44 KB

Ubuntu .NET Core Versions

.NET has changed the recommended install methods for Ubuntu from 2404.

This document gives an overview of these change and the impact this has on the runner-images.

.NET Core for Ubuntu 2004 and 2204

2004 and 2204 use the Microsoft Package repository to install .NET deb files built and published by the .NET team.

.NET Core Versions from Ubuntu 2404

The .NET Core team have worked with Canonical and Ubuntu now provides its own .NET packages.

These are the recommended install path and, as-such what is installed on the image.

The release of Ubuntu 24.04 is just around the corner. Canonical-produced .NET 6, 7, and 8 packages will be available on day one, for "Noble Numbat". Microsoft will not be publishing .NET packages to the 24.04 feed at packages.microsoft.com.

You can read the full announcement from .NET team here. We'll briefly summarize how this change may impact users of the image.

Going forward only the 1xx feature band will be present in the image as Ubuntu only build and publish this band.

Most distros, including Ubuntu, stick to the .1xx feature band for the lifetime of a major .NET version. They make this choice because .1xx is (effectively) the "compatibility band". Higher bands can have breaking changes. This means there will no longer be packages available for .2xx and later feature bands. Such packages have been exclusively available from Microsoft. If users see an incompatibility between .1xx and higher feature bands, we ask that you please report it in the dotnet/sdk repo. link: dotnet/core discussion

If you need a higher feature band for your Actions the recommendation is to use the setup-dotnet action to install the desired version.

.NET MAUI

.NET MAUI is not included in the Ubuntu .NET package. There is work ongoing to fix.

You should be able to resolve this by using the setup-dotnet action to install the desired version.