2016-07-14 87 views
0

我們正在嘗試爲我們的Cordova項目的Package.appxmanifest添加Iot功能。 Visual Studio抱怨說我們試圖使用的功能無法找到,也不是基礎名稱空間的孩子。Windows 10 IOT Foundation命名空間丟失IOT

下劃線的IOT:能力顯示了當鼠標懸停在以下幾點:命名空間「http://schemas.microsoft.com/appx/manifest/foundation/winows10」 元素「BackgroundTasks」在命名空間「http://schemas.microsoft.com/appx/manifest/iot/windows10」無效子元素「能力」。預期可能的元素列表:'...

事情是我創建這個作爲一個新項目,讓vs做所有的工作,但它無法解決它自己創建的條目。我們用VS生成的一個新的C#和JS項目來看這個。任何人都可以幫忙嗎? (是的,我們也爲項目添加了「UWP的Windows IoT擴展」參考10.0.10586.0)。僅供參考我們在添加時也會遇到同樣的錯誤。

這裏的package.appxmanifest:

<?xml version='1.0' encoding='utf-8'?> 
<Package IgnorableNamespaces="uap mp iot" xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:iot="http://schemas.microsoft.com/appx/manifest/iot/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"> 
    <Identity Name="com.project.syndication.sitepad" Publisher="CN=$username$" Version="2.0.0.0" /> 
    <mp:PhoneIdentity PhoneProductId="a885d1d0-453e-11e6-a59d-550bfa336405" PhonePublisherId="00000000-0000-0000-0000-000000000000" /> 
    <Properties> 
     <DisplayName>SitePad App</DisplayName> 
     <PublisherDisplayName>ERT</PublisherDisplayName> 
     <Logo>images\StoreLogo.png</Logo> 
    </Properties> 
    <Dependencies> 
     <TargetDeviceFamily MaxVersionTested="10.0.10586.0" MinVersion="10.0.10586.0" Name="Windows.Universal" /> 
    </Dependencies> 
    <Resources> 
     <Resource Language="x-generate" /> 
    </Resources> 
    <Applications> 
     <Application Id="com.project.syndication.sitepad" StartPage="ms-appx-web:///www/index.html"> 
      <uap:VisualElements BackgroundColor="#464646" Description="CordovaApp" DisplayName="SitePad App" Square150x150Logo="images\Square150x150Logo.png" Square44x44Logo="images\Square44x44Logo.png"> 
       <uap:SplashScreen Image="images\splashscreen.png" /> 
       <uap:DefaultTile ShortName="SitePad App" Square310x310Logo="images\Square310x310Logo.png" Square71x71Logo="images\Square71x71Logo.png" Wide310x150Logo="images\Wide310x150Logo.png" /> 
      </uap:VisualElements> 
      <uap:ApplicationContentUriRules> 
       <uap:Rule Match="ms-appx-web:///" Type="include" WindowsRuntimeAccess="all" /> 
      </uap:ApplicationContentUriRules> 
     </Application> 
    </Applications> 
    <Capabilities> 
     <Capability Name="internetClient" /> 
     <uap:Capability Name="picturesLibrary" /> 
     <iot:Capability Name="systemManagement" /> 
    </Capabilities> 
</Package> 
+0

您的代碼是否編譯並運行正常? – Jackie

回答

0

懸停錯誤看起來像什麼(VS?),我看到一個bug它多次,但我的代碼仍然編譯和運行正常。

不用擔心這一點。