2019-07-06 21:40:43

Hello! So in C#, I have the following code
if (System.Environment.OSVersion.Version.Major >= 10)
            {
                IsUWPAvailable = true;
            }
            else
            {
                return;
            }
However the expression inside the if statement never evaluate. How can I check if the target system is Windows 10?

If you want to contact me, do not use the forum PM. I respond once a year or two, when I need to write a PM myself. I apologize for the inconvenience.
Telegram: Nuno69a
E-Mail: nuno69a (at) gmail (dot) com

2019-07-07 01:02:29

There's a working example for that [here], something along the lines of including a manifest file. A stackoverflow question [here] goes over a few other options.

-BrushTone v1.3.3: Accessible Paint Tool
-AudiMesh3D v1.0.0: Accessible 3D Model Viewer

2019-07-07 09:43:45

Yeah, I know about that Manifest, but it does not want to work for me lol. Thank you for your response, of course!

If you want to contact me, do not use the forum PM. I respond once a year or two, when I need to write a PM myself. I apologize for the inconvenience.
Telegram: Nuno69a
E-Mail: nuno69a (at) gmail (dot) com