broadFileSystemAccess UWP [英] broadFileSystemAccess UWP

查看:174
本文介绍了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆