Search code examples
c#uwpportabilitymtp

UWP Windows.Devices.Portable cannot be referenced


In my UWP app I'm trying to get an access to Portable Devices (MTP,PTP) storage.

In the following question the OP used the namespace Windows.Devices.Portable without problems. Here.

But in my case: enter image description here

Windows.Devices contains no Portable class


Solution

  • I managed to figure it out. The namespace Windows.Devices.Portable lives in the Windows Desktop Extensions for the UWP.

    So, all you need to do is to reference the extension.