Hi @水 知 ,
Welcome to Micrsoft Q&A!
The official documentation of File access permissions on how to add broadFileSystemAccess
is as follows.
<Package
...
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap mp rescap">
...
<Capabilities>
<rescap:Capability Name="broadFileSystemAccess" />
</Capabilities>
I can reproduce the same behavior when I use <Capability Name="broadFileSystemAccess"/>
. If I use <rescap:Capability Name="broadFileSystemAccess"/>
as in the official documentation, and then 'Rebuild All', there is no error.
If the problem still doesn't resolve after following the code in the document, please share the complete Package.appxmanifest.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.