How do I get access to Windows.Storage namespace?

别说谁变了你拦得住时间么 提交于 2019-12-07 07:05:16

问题


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.


回答1:


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 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.



来源:https://stackoverflow.com/questions/49688510/how-do-i-get-access-to-windows-storage-namespace

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!