broadFileSystemAccess 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.
转到 Solution Explorer ,然后右键单击 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
附加到其值的末尾即可.现在向下滚动并找到<Capabilities>
.在内部添加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" />
这篇关于broadFileSystemAccess UWP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!