UWP: Deployment error: Cannot register the xxxxx package because the extension is missing an EntryPoint or StartPage attribute. (0x80073cf6)

UWP: Deployment error: Cannot register the xxxxx package because the extension is missing an EntryPoint or StartPage attribute. (0x80073cf6)

我尝试创建一个带有 win32 fullTrustProcess AppService 扩展的 JS UWP 应用程序。我按照这里的示例:https://github.com/Microsoft/DesktopBridgeToUWP-Samples/tree/master/Samples/AppServiceBridgeSample 但是当我尝试部署到本地计算机时(Windows 10 周年更新)然后我收到部署错误:

DEP0700 : Registration of the app failed. AppxManifest.xml(49,10): error 0x80080204: Cannot register the xxxxx package because the extension is missing an EntryPoint or StartPage attribute. (0x80073cf6)
Deployment of the application to the target device failed.

清单的扩展部分:

<Extensions>
    <uap:Extension Category="windows.appService"> <!-- line 49 from error -->
        <uap:AppService Name="CommunicationService" />
    </uap:Extension>
    <desktop:Extension Category="windows.fullTrustProcess" Executable="bin\mywin32.exe" />
</Extensions>

要在 WINJS UWP 应用程序中使用此功能,请按照以下步骤操作:

  1. 为 fullTrustProcess 扩展添加 EntryPoint 属性:

<desktop:Extension Category="windows.fullTrustProcess" Executable="BackgroundProcess.exe" EntryPoint="Windows.FullTrustApplication" />

  1. 为 appService 扩展设置 StartPage 属性:

<uap:Extension Category="windows.appService" StartPage="index.html"> <uap:AppService Name="CommunicationService" /> </uap:Extension>

  1. TargetDeviceFamily改为Desktop并确保MinVersion高于14257:

<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14393.0" MaxVersionTested="10.0.14393.0" />

在这里查看我的演示:https://github.com/Myfreedom614/UWP-Samples/tree/master/AppServiceBridgeSample

我遇到了同样的问题。不幸的是,我无法使用 Franklin Chen 提出的解决方案解决它。

我通过启动一个新的 windows 通用项目解决了这个问题,并确保我只使用最新版本的 Windows 通用模板(在我的例子中是后台任务)。 创建后,我立即将其部署到 Raspberry Pi。成功部署后,我将代码从我的旧项目复制到这个新项目,然后我到达了我想去的地方。