using System;
using System.Runtime.InteropServices;
class Program
{
static void Main()
{
// Get the OS description (e.g., Windows, Linux, macOS)
string osDescription = RuntimeInformation.OSDescription;
// Get the OS architecture (e.g., x64, ARM)
string osArchitecture = RuntimeInformation.OSArchitecture.ToString();
Console.WriteLine($"Operating System: {osDescription}");
Console.WriteLine($"Architecture: {osArchitecture}");
}
}
/*
run:
Operating System: Unix 6.6.72.0
Architecture: X64
*/