Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
该Environment.OSVersion属性可用于获取当前操作系统的版本。它的Version属性对于那里的各种操作系统有什么价值?
Environment.OSVersion
Version
我只对Major和Minor值感兴趣,主要是关于桌面操作系统。
Major
Minor
看看MSDN:操作系统版本
我们去http://www.codeguru.com/cpp/wp/system/systeminformation/article.php/c8973/