Canonical’s build of .NET for Ubuntu
Get long-term support, automated installation, and streamlined packaging for .NET apps on Ubuntu
Bring stability to your .NET environment by innovating on Ubuntu. Receive security patches on day 1, with up to 12 years of long-term support for .NET LTS releases, through Ubuntu Pro. Benefit from hassle-free installation through the .NET snap, and keep your workloads secure with our minimal runtime containers.
Predictable .NET release cadence
.NET releases on Ubuntu follow an established, reliable cadence that offers you both the latest versions and long-term support for LTS releases. There are multiple methods for installing the .NET toolchain on Ubuntu.
Each method offers distinct advantages for various organizations; therefore, choose the one that best aligns with your requirements from the options below.
Archive packages
Ubuntu LTS releases contain the most recent .NET LTS version in the archive at the time of the Ubuntu release. This package benefits from the security and support guarantees of Ubuntu Pro.
.NET snap
The .NET snap streamlines the setup experience and it facilitates the side-by-side installation of multiple .NET SDKs and runtimes, utilizing the identical source-built binaries available from the Ubuntu archive.
We offer .NET content snaps for the .NET and ASP.NET runtimes, along with the SDK. These content snaps allow for the sharing of .NET runtimes and SDK among various .NET application snaps, which can save storage space and accelerate installation.
.NET backports PPA
The .NET backports PPA gives developers the ability to install older .NET releases on newer Ubuntu versions. Please note that the packages in the .NET backports PPA are only maintained until the upstream .NET release reaches end-of-life.
.NET previews PPA
The .NET previews PPA makes available the latest .NET release previews Microsoft makes available for public testing. The packages in this PPA are intended only for testing and do not receive security support.
Security patching and maintenance, in partnership with Microsoft
We have an established partnership with Microsoft to package, test, and deliver monthly .NET updates for Ubuntu 22.04 LTS and newer versions. As .NET security partners, we receive early access to security patches directly from Microsoft, enabling us to package and test even embargoed patches before their official release.
This coordination provides immediate, day 1 protection for your .NET applications, with security updates released on the same day of the official Microsoft releases.
Using .NET on Ubuntu gives developers the freedom to focus on making impactful applications that deliver value for customers. Through Ubuntu Pro, Canonical’s subscription for open source security, patching and maintenance for the latest .NET LTS releases will continue running until 2034.
Secure, minimal containers for .NET
Since November 2023, Canonical has offered .NET chiseled containers for all supported .NET versions.
Ultra-small and OCI-compliant, these images contain only your application and its essential runtime dependencies. This approach omits all other operating system packages and libraries, ensuring the images are lightweight, secure, and efficient.
The images are available for both AMD64 and ARM64 architectures, and benefit from up to 12 years of security support with Ubuntu Pro.
Streamlined application packaging for VMs and containers
Canonical provides tooling to simplify and automate packaging of .NET applications so that they can run on your VM and Kubernetes environments.
Simplify packaging for VM environments
The new Snapcraft plugin greatly simplifies packaging of .NET applications as Snaps. It defaults to using Ubuntu’s source-built, .NET SDK content snaps, supports monorepo setups, and integrates with MSBuild through custom flag attributes.
Snaps bundle an application with all its dependencies, allowing it to run securely in a sandbox on any major Linux distribution. This simplifies software management with automatic updates and robust security guarantees.
Create secure, minimal containers
The .NET Rockcraft plugin allows you to build .NET projects using the dotnet tool. It automates the typical build process by executing dotnet restore, dotnet build, and dotnet publish in that order.
Rocks are Ubuntu LTS-based container images that are designed to meet cloud-native software’s security, stability, and reliability requirements.
Ample architecture support
Canonical .NET builds are available and tested on the following architectures:
- AMD64
- ARM64
- s390x
- Ppc64el