我正在尝试对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/