4/4/2024 0 Comments Windows nt server 6.3OperatingSystem = "Windows " + operatingSystem Let's prepend "Windows" and get more info. That information is useless without the OS version. We don't want to just return " Service Pack 2" or " 32-bit" Make sure we actually got something in our OS check If (os.Platform = PlatformID.Win32Windows)Įlse if (os.Platform = PlatformID.Win32NT) OperatingSystem os = Environment.OSVersion I used this when I had to determine various Microsoft Operating System versions: string getOSInfo() For more information, see Environment.OSVersion returns the correct operating system version. NET 5.0 and later, always returns the actual OS version. Important note: if your executable assembly manifest doesn't explicitly state that your exe assembly is compatible with Windows 8.1 and Windows 10.0, will return Windows 8 version, which is 6.2, instead of 6.3 and 10.0! Source: here. +-+įor a library that allows you to get a more complete view of the exact release of Windows that the current execution environment is running in, check out this library. | | PlatformID | Major version | Minor version | It consists of three components which map to the following Windows versions: +-+ has the information you need for distinguishing most Windows OS major releases, but not all.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |