+.NET 8 and later versions: This property returns a string that identifies the operating system and processor architecture for which the runtime was built. For example, the value on Windows 11 is `win-x64`, and on Debian 12, it's `linux-x64`. Since this value represents the platform for which the runtime was built, it may differ depending on the installation source. Microsoft-built runtimes use [portable RIDs](https://github.com/dotnet/runtime/blob/main/src/libraries/Microsoft.NETCore.Platforms/src/PortableRuntimeIdentifierGraph.json) like `linux-x64` that can run on multiple Linux distributions. However, some Linux distributions [provide their own packages](/dotnet/core/install/linux#packages) built specifically for that distribution and version, which may return more specific RIDs like `ubuntu.24.10-x64`.
0 commit comments