Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 3.31 KB

File metadata and controls

34 lines (22 loc) · 3.31 KB

.NET on Arm64

.NET 5 is 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

Version Linux Arm64 Notes
.NET 6 Yes Preview releases provide early access to features that are currently under development. These releases are generally not supported for production use.
.NET 5 Yes Arm64-specific optimizations in the .NET libraries and the code produced by RyuJIT. Arm64 Performance in .NET 5
.NET Framework 4.x No The original implementation of the .NET Framework does not support Linux hosts, and Windows is not suported on the NVIDIA Arm HPC Developer Kit.
.NET Core 3.1 Yes .NET Core 3.0 added support for Arm64 for Linux.

.NET 5

With .NET 5 Microsoft has made specific Arm64 architecture optimizations. These optimizations were made in the .NET libraries as well as in the machine code output by the JIT process.

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 official documents.