Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect the difference between WinRT and Windows 8

For statistic tracking, I'd like to be able to tell if the application is running on Windows RT or Windows Pro.

This thread says that there's no way to get the system version info:

Get OS-Version in WinRT Metro App C#

Any ideas?

like image 515
user1567095 Avatar asked Dec 04 '25 18:12

user1567095


1 Answers

One thing you could do is to go to Configuration Manager in Visual Studio and instead of the default Any CPU configuration - create separate ARM/x86/x64 configurations and in project properties/Conditional compilation symbols define a symbol that is different for ARM vs. x86/x64 configurations. Then you can just test for it in your code using #if #else #endif preprocessor directives.

like image 184
Filip Skakun Avatar answered Dec 07 '25 13:12

Filip Skakun



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!