Skip to content

Instantly share code, notes, and snippets.

@davepcallan
Created March 4, 2024 02:47
Show Gist options
  • Save davepcallan/5a86e83c6b85aae904f61c82646e3e9d to your computer and use it in GitHub Desktop.
Save davepcallan/5a86e83c6b85aae904f61c82646e3e9d to your computer and use it in GitHub Desktop.
Get runtime information
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