Kinani
Kinani

Reputation: 484

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

Upvotes: 3

Views: 610

Answers (1)

Kinani
Kinani

Reputation: 484

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.

Upvotes: 4

Related Questions