You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

UWP应用添加broadFileSystemAccess权限失败的技术咨询

关于UWP应用添加broadFileSystemAccess权限的问题

我曾成功开发具备磁盘访问权限的Silverlight应用,近期开发UWP应用时,尝试添加broadFileSystemAccess权限却屡遭失败,具体尝试过程及报错如下:

第一次尝试配置

在清单中添加如下配置:

<Capabilities>
    <Capability Name="broadFileSystemAccess" />
</Capabilities>

出现验证错误:

Severity Code Description Project File Line Skip Status
Error Validation error. error C00CE014:
App manifest validation error: The app manifest must be valid as per schema: Line 35, Column 6, Reason: The element
'{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Capability' is unexpected with respect to the content model of the parent element
'{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Capabilities'.
Expected: {http://schemas.microsoft.com/appx/manifest/foundation/windows10}DeviceCapability. 2017uwp_run_allow C:UserspiotrDownloads2017uwp_run_allow (1)2017uwp_run_allow2017uwp_run_allowbinARMDebugAppxManifest.xml

第二次尝试配置

将配置改为:

<Capabilities>
    <DeviceCapability Name="broadFileSystemAccess" />
</Capabilities>

出现应用注册失败错误:

Severity Code Description Project File Line Skip Status Error DEP0700: Application registration failed.
[0x80073CF6] Package could not be registered. (Exception from HRESULT: 0x80073CF6) 2017uwp_run_allow

后续尝试的错误

后续添加权限仍报错,错误信息如下:

Severity Code Description Project File Line Skip Status
Error Validation error. error C00CE014: App manifest validation error: The app manifest must be valid as per schema: Line 35, Column 6,
Reason: The element '{http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities}Capability' is unexpected with respect to the content model of the parent element
'{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Capabilities'. Expected: {http://schemas.microsoft.com/appx/manifest/foundation/windows10}DeviceCapability.
2017uwp_run_allow C:UserspiotrDownloads2017uwp_run_allow (1)2017uwp_run_allow2017uwp_run_allowbinARMDebugAppxManifest.xml

请问是否只有微软在审核应用源码后,才能注册或签名具备broadFileSystemAccess权限的应用?


内容的提问来源于stack exchange,提问作者Jacek Sniadecki

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.13 17:45:07