Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

.NET on Graviton

.NET is an open-source platform for writing different types of applications. Software engineers can write .NET based applications in multiple languages such as C#, F#, and Visual Basic. .NET applications are compiled into Common Intermediate Language (CIL). When an application is executed, the Common Language Runtime (CLR) loads that application binary and uses a just-in-time (JIT) compiler to generate machine code for the architecture being executed on. For more information, please see what is .NET.

.NET Versions

VersionLinux Arm32Linux Arm64Notes
.NET 10YesYesv10.0.0 released November 2025 with Arm64 Linux builds (LTS, supported until 2028-11-14). Recommended for new projects on Graviton.
.NET 9YesYesv9.0.0 released November 12, 2024 with Arm64 Linux builds. Maintenance support until 2026-11-10. See also Arm64 vectorization in .NET libraries.
.NET 8YesYesv8.0.0 released November 14, 2023 with Arm64 Linux builds. Maintenance support until 2026-11-10. See also Arm64 Performance Improvements in .NET 8. For details on .NET 8 and Graviton, check out this blog: Powering .NET 8 with AWS Graviton3: Benchmarks
.NET 7YesYesOut of support since 2024-05-14.
.NET 6YesYesOut of support since 2024-11-12.
.NET 5YesYesOut of support since 2022-05-10.
.NET Framework 4.xNoNoThe original implementation of the .NET Framework does not support Linux hosts, and Windows hosts are not supported on Graviton.
.NET Core 3.1YesYesOut of support since 2022-12-13.
.NET Core 2.1YesNoOut of support since 2021-08-21.

Since version 5, .NET has added specific Arm64 optimizations in both the .NET libraries and the machine code emitted by RyuJIT, and each subsequent release has built on top of that work. We recommend .NET 10 (LTS) for new Graviton workloads, or .NET 8/9 if you need an earlier supported release.

Building & Publishing for Linux Arm64

The .NET SDK supports choosing a Runtime Identifier (RID) used to target platforms where the applications run. These RIDs are used by .NET dependencies (NuGet packages) to represent platform-specific resources in NuGet packages. The following values are examples of RIDs: linux-arm64, linux-x64, ubuntu.14.04-x64, win7-x64, or osx.10.12-x64. For the NuGet packages with native dependencies, the RID designates on which platforms the package can be restored.

You can build and publish on any host operating system. As an example, you can develop on Windows and build locally to target Arm64, or you can use a CI server like Jenkins on Linux. The commands are the same.

dotnet build -r linux-arm64
dotnet publish -c Release -r linux-arm64

For more information about publishing .NET apps with the .NET CLI please see the offical documents.