广泛的文件系统访问 UWP [英] broadFileSystemAccess UWP
问题描述
我正在尝试将 broadFileSystemAccess
功能用于 UWP 应用,但 broadFileSystemAccess
功能未列在 Package.appxmanifest 的功能列表中.
I'm trying to use broadFileSystemAccess
Capability for UWP apps, But broadFileSystemAccess
capability is not listed in my list of capabilites in Package.appxmanifest.
我的最小和最大目标版本是 1803,构建 17134,请帮我解决这个问题.
My min and max target version is 1803, build 17134, Please help me with this.
推荐答案
Package.appxmanifest的设计器"中没有列出该功能,需要通过代码手动添加.
This capability is not listed in the "designer" of Package.appxmanifest, you have to add it manually via code.
转到解决方案资源管理器,然后右键单击Package.appxmanifest.选择查看代码.
Go to Solution Explorer and right-click Package.appxmanifest. Select View Code.
在代码视图中更新 Package
元素以包含以下内容:
In the code view update the Package
element to contain the following:
<Package
...
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap mp rescap">
不要复制 IgnorableNamespaces
属性,只需将 rescap
附加到其值的末尾.现在向下滚动并找到
.在里面添加 broadFileSystemAccess
功能如下:
Do not duplicate the IgnorableNamespaces
attribute, just append rescap
to the end of its value. Now scroll down below and find <Capabilities>
. Inside add the broadFileSystemAccess
capability as follows:
<rescap:Capability Name="broadFileSystemAccess" />
这篇关于广泛的文件系统访问 UWP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!