Agent-Logs-Url: https://github.com/actions/runner-images/sessions/c386304d-825a-4777-971a-9a956f651cd9 Co-authored-by: v-AndriiKhyliuk <[email protected]>
2.5 KiB
Ubuntu .NET Core Versions
.NET has changed the recommended install methods for Ubuntu starting from 24.04.
This document gives an overview of these changes and the impact on the runner-images.
.NET Core for Ubuntu 22.04
Ubuntu 22.04 uses the Microsoft Package repository to install .NET deb files built and published by the .NET team.
.NET Core Versions from Ubuntu 24.04
The .NET Core team worked with Canonical so that Ubuntu now provides its own .NET packages via the Ubuntu package feed.
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 the .NET team here. Below is a brief summary of how this change may impact users of the image.
Feature Bands
Going forward, only the 1xx feature band will be present in the image because Ubuntu only builds and publishes 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. Work to fix this is ongoing.
You should be able to resolve this by using the setup-dotnet action to install the desired version.