PROPERTY
RuntimeInformation.RuntimeIdentifier
Reports the identifier for which the current runtime was built. It is not a measurement of the architecture of a separate deployment target. Distribution-specific identifiers may occur; do not construct a release RID by parsing an arbitrary identifier.
Formal Syntax & Structure
csharp syntaxcsharp
RuntimeInformation.RuntimeIdentifierWorking Example
Example Snippetcsharp
using System;using System.Collections.Generic;using System.Runtime.InteropServices;Console.WriteLine(RuntimeInformation.RuntimeIdentifier); // Environment-dependent