I am trying to use the ContactManager class in the Windows 10 Universal apps API. I am trying to do this on a Windows 10 Desktop machine.
I am receiving an exception
As of 2018, there is such capability listed on Capabilities tab when visually editing the Package.appxmanifest, at least in VS2017. Anyway, the
<uap:Capability Name="contacts" />
is the crucial thing required in manifest.
Alright, I think I discovered the answer on my own. Looks like if you add the "contacts" capability to the Package.appxmanifest file manually, it will fix the issue.
There is no UI option for this capability. You have to somehow know it exists, edit the file in a text editor instead of in the UI, and add:
<uap:Capability Name="contacts" />