using System;
using System.IO;
using System.Runtime.InteropServices;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
Console.WriteLine($"Temp path: {Path.GetTempPath()}"); // Temp path: C:\Users\redpl\AppData\Local\Temp Console.WriteLine(RuntimeInformation.OSArchitecture.ToString("G")); // X64
Console.WriteLine(RuntimeInformation.OSDescription); // Microsoft Windows 10.0.10586
Console.WriteLine(RuntimeInformation.FrameworkDescription); // .NET Core 4.0.0.0
Console.WriteLine(RuntimeInformation.ProcessArchitecture.ToString("G")); // X64
Console.WriteLine(RuntimeInformation.IsOSPlatform(OSPlatform.OSX)); // False
Console.WriteLine(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)); // True
}
}
}