簡體   English   中英

Windows 10 IOT Foundation命名空間缺少IOT

[英]Windows 10 IOT Foundation namespace is missing IOT

我們正在嘗試為我們的Package.appxmanifest添加iot功能,以實現cordova項目。 Visual Studio抱怨我們嘗試使用的功能無法找到,也不是基礎名稱空間的子代。

帶下划線的iot:Capability在懸停時顯示以下內容:命名空間' http://schemas.microsoft.com/appx/manifest/foundation/winows10 '中的元素'BackgroundTasks'在命名空間' http中具有無效的子元素'Capabilities' : //schemas.microsoft.com/appx/manifest/iot/windows10 '。 預期可能元素清單:'...

問題是我創建了這個新項目,讓vs做所有的工作,但它無法解決它自己創建的條目。 我們看到VS生成的新C#和JS項目。 有人可以幫助我們嗎? (是的,我們也將“UWP的Windows IoT Extensions”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>

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

不用擔心這個。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM