uwp - broadFileSystemAccess UWP

标签 uwp windows-runtime microsoft-metro uwp-xaml

我正在尝试对UWP应用使用broadFileSystemAccess功能,但是package.appxmanifest的功能列表中未列出broadFileSystemAccess功能。

我的最低和最高目标版本是1803,内部版本17134,请为此提供帮助。

最佳答案

此功能未在 Package.appxmanifest 的“设计器”中列出,您必须通过代码手动添加。

转到解决方案资源管理器,然后右键单击 Package.appxmanifest 。选择查看代码

在代码 View 中,将Package元素更新为包含以下内容:

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

不要复制IgnorableNamespaces属性,只需将rescap附加到其值的末尾即可。现在向下滚动并找到<Capabilities>。在内部添加broadFileSystemAccess功能,如下所示:
<rescap:Capability Name="broadFileSystemAccess" />

关于uwp - broadFileSystemAccess UWP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50559764/

相关文章:

c# - Windows 8 应用程序的 ViewModel 中的依赖属性与 INotifyPropertyChanged

android - 加载数据测试移动应用程序升级的有效方法是什么

C# Httpclient FormUrlEncodedContent 编码

uwp - 如何在 UWP 中创建类似于 Segoe MDL2 Assets 的图标

c++ - 我的 C++ 类必须是 Windows 8 Metro 风格应用程序中的引用类吗?

c# - 静态构造函数之前的异步加载设置

c# - 当用鼠标双击时 - 通过哪个按钮发现

c# - Windows 运行时组件中不可能继承?

c# - 用于 Windows 8 开发的 Metro 与 WPF?

c# - 使用C#管理Windows Store应用程序的SQLite数据库