Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 622
Kinani Avatar asked Dec 04 '25 17:12

Kinani


1 Answers

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.

like image 168
Kinani Avatar answered Dec 06 '25 06:12

Kinani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!