broadFileSystemAccess UWP

问题描述 投票:0回答:2

我正在尝试将broadFileSystemAccess功能用于UWP应用程序,但broadFileSystemAccess功能未列在我的Package.appxmanifest功能列表中。

我的最小和最大目标版本是1803,建立17134,请帮助我。

uwp windows-runtime microsoft-metro uwp-xaml
2个回答
7
投票

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

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

在代码视图中更新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" />
© www.soinside.com 2019 - 2024. All rights reserved.