Skip to content

Commit c6c0a07

Browse files
authored
Update note about RuntimeInformation.RuntimeIdentifier being based on the build (#11203)
1 parent 69b3016 commit c6c0a07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Runtime.InteropServices/RuntimeInformation.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,9 @@ It's not recommended to parse the string for information.
364364
365365
## Remarks
366366
367-
.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 Ubuntu 20.04, it's `linux-x64`.
367+
.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`.
368368
369-
.NET 7 and earlier versions: This property returns a string that identifies the platform (operating system, version, and processor architecture) on which the current process is running. For example, when running an application on Windows 11, the value is `win10-x64`, and on Ubuntu 20.04, it can be `ubuntu.20.04-x64`.
369+
.NET 7 and earlier versions: This property returns a string that identifies the platform (operating system, version, and processor architecture) on which the current process is running. For example, when running an application on Windows 11, the value is `win10-x64`, and on Debian 12, it can be `debian.12-x64`.
370370
371371
Since this string is opaque, it's not recommended to parse the string into its constituent parts.
372372

0 commit comments

Comments
 (0)