public static string GetOsName() { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { return(AsaHelpers.GetPlatformString()); } else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) { if (ExternalCommandRunner.RunExternalCommand("uname", "-s", out string StdOut, out string _) == 0) { return(StdOut); } } return(""); }