Created
March 4, 2024 02:47
-
-
Save davepcallan/5a86e83c6b85aae904f61c82646e3e9d to your computer and use it in GitHub Desktop.
Get runtime information
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
public class C { | |
static void Main(string[] args) | |
{ | |
Console.WriteLine(RuntimeInformation.OSDescription); | |
Console.WriteLine(RuntimeInformation.ProcessArchitecture.ToString()); | |
Console.WriteLine(RuntimeInformation.FrameworkDescription); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment