Search code examples
c#.net-standard-2.0

RuntimeEnvironment.GetRuntimeIdentifier Equivalent in netstandard2.0?


Is there a RuntimeEnvironment.GetRuntimeIdentifier equivalent in netstandard2.0? How would i get the runtime identifier?


Solution

  • System.Operating​System.​Platform:

    https://learn.microsoft.com/en-us/dotnet/api/system.operatingsystem.platform?view=netstandard-2.0