最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

UWP broadFileSystemAccess manifest fails to compile and load into phone - Stack Overflow

programmeradmin6浏览0评论

see here the app

<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="; xmlns:mp="; xmlns:uap="; xmlns:rescap="; IgnorableNamespaces="uap mp rescap">
  <Identity Name="2676b3dd-e073-4d88-af76-f772d37a492f" Publisher="CN=piotr" Version="1.0.0.0" />
  <mp:PhoneIdentity PhoneProductId="2676b3dd-e073-4d88-af76-f772d37a492f" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
  <Properties>
    <DisplayName>2017uwp_run_allow</DisplayName>
    <PublisherDisplayName>piotr</PublisherDisplayName>
    <Logo>Assets\StoreLogo.png</Logo>
  </Properties>
  <Dependencies>
    <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
  </Dependencies>
  <Resources>
    <Resource Language="x-generate" />
  </Resources>
  <Applications>
    <Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="_2017uwp_run_allow.App">
      <uap:VisualElements DisplayName="2017uwp_run_allow" Square150x150Logo="Assets\StoreLogo.png" Square44x44Logo="Assets\StoreLogo.png" Description="2017uwp_run_allow" BackgroundColor="transparent">
        <uap:DefaultTile Wide310x150Logo="Assets\StoreLogo.png">
        </uap:DefaultTile>
        <uap:SplashScreen Image="Assets\StoreLogo.png" />
      </uap:VisualElements>
    </Application>
  </Applications>
  <Capabilities>
    <Capability Name="internetClient" />
    <uap:Capability Name="removableStorage" />
    <DeviceCapability Name="bluetooth" />
    <rescap:Capability Name="broadFileSystemAccess"/>
  </Capabilities>
</Package>

The above manifest file fails to compile and load app into phone. Error is:

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 '{}Capability' is unexpected with respect to the content model of the parent element 
'{}Capabilities'. Expected: {}DeviceCapability. 
2017uwp_run_allow C:UserspiotrDownloads2017uwp_run_allow (1)2017uwp_run_allow2017uwp_run_allowbinARMDebugAppxManifest.xml

What is going on? How to fix it?

It is working file without broadFileSystemAccess capability in manifest but with it it fails to compile

发布评论

评论列表(0)

  1. 暂无评论