简体   繁体   中英

How do I get access to Windows.Storage namespace?

I want to save data to files for my Microsoft Store app, so I need access to Windows.Storage namespace, but it's unclear how I can get it. I couldn't add it as a reference. I'm using Visual Studio 2017 with .NET Framework 4.6.1.

My app is a Windows Forms application that I converted to UWP using the Desktop Bridge.

The recommended steps to get access to UWP APIs are listed in the dedicated blog post on Windows Blog .

Basically you can take two approaches: add the references to UWP dlls and winmd files manually or use the UwpDesktop-Updated NuGet package that will take care of this for you automatically, but this project doesn't seem to be up to date with the latest SDKs, so the manual approach may be a better solution for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM