Environment.OSVersion does not exist

I am creating a universal Windows app (phone and metro) and I need to access the friendly name of the operating system (like Windows Phone 8.1). All sources on the Internet point to Environment.OSVersion

, but Environment

do not contain definitions for OSVersion

. Did I miss something?


source to share

1 answer

I use this to get some statistics:

Windows.Security.ExchangeActiveSyncProvisioning.EasClientDeviceInformation deviceInfo = new Windows.Security.ExchangeActiveSyncProvisioning.EasClientDeviceInformation();

string FriendlyName = deviceInfo.FriendlyName;
string OperatingSystem = deviceInfo.OperatingSystem;
string SystemManufacturer = deviceInfo.SystemManufacturer;
string SystemProductName = deviceInfo.SystemProductName;


Unfortunately, WindowsPhone is not a full OS version like in Silverlight, it can only be Windows or WindowsPhone



All Articles