0

我尝试使用 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>
4

2 回答 2

1

要在 WINJS UWP 应用程序中进行这项工作,请按照以下步骤操作:

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

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

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

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

  1. 更改TargetDeviceFamilyDesktop并确保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

于 2016-08-23T03:37:22.787 回答
0

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

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

于 2018-06-23T21:32:08.887 回答