Like im working on a "console game engine" but it only works on Windows 10 since "custom colors" arent properly displayed on other versions, for example win8, instead they are just a bunch of unicode codes? "
"
so i wanna check if windows version is 10. and i did this
var workingSysVer = Environment.OSVersion.Version.ToString().Substring(0, 2);
if (workingSysVer != "10")
{
Console.Title = "OS Version Warning";
// other code
}
Is there a better way to check version of windows?