Windows Mobile and Other UWP Extensions - Which Version Should I Use

I already knew that in order to get DeviceId I had to add a link to my project - "Windows Mobile Extensions for UWP", this SDK comes with Visual Studio and is available in the link manager in the "Universal / Windows Extensions" section. However, there are two positions in the list, such as: 10.0.10240.0 and 10.0.10586.0.

Which one should I use? Are there any differences that I should be aware of, or should I continue to use newer ones? Are they associated with the Windows build number on the machine in which I want to run the application?

+6
source share
2 answers

A generic Windows platform project can use feature detection to use the APIs available on platform version "2" and still work on platform version "1", just as it can work on a desktop, mobile phone or IoT with a specific user experience for each platform.

Here's how to deal with function detection (not version detection)

https://blogs.windows.com/buildingapps/2015/09/15/dynamically-detecting-features-with-api-contracts-10-by-10/

Check how to set up project properties

https://msdn.microsoft.com/en-us/library/8x480de8.aspx

+2
source

In Solution Explorer, right-click the link and add the Windows Mobile extensions for UWP.

You still need to remove the old SDK link and perform a clean build, but this resolved this error for me on the samples.

0
source

All Articles