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?

Raduvay se, raduvay
Raduvay se domaki ne
Kolko liste po gorach
Tolko zdrave na taz kyshcha

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

Thumbs up

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!

Raduvay se, raduvay
Raduvay se domaki ne
Kolko liste po gorach
Tolko zdrave na taz kyshcha