如何在.NET标准库(需要DirectoryInfo)中使用UWP的StorageFolder

时间:2018-10-22 11:38:01

标签: c# uwp .net-standard

相关信息:

在UWP应用程序的上下文中,即使用户已通过FolderPicker授予了使用给定文件夹的权限,随后仍然必须通过Windows对文件夹 进行访问。存储API。

从“ UWP API范围”中的 StorageFolder 到在内部使用 DirectoryInfo 。

更新

我已经在Package.appxmanifest中包含了“ broadFileSystemAccess”功能:

... xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation>/windows10/restrictedcapabilities"
... IgnorableNamespaces="uap mp rescap"
... <rescap:Capability Name="broadFileSystemAccess" />

0 个答案:

没有答案