如何将 Node.js Windows 通用应用设置为 Windows 10 IOT Core 上的启动应用

How to set Node.js Windows Universal app as startup app on Windows 10 IOT Core

我已经从 Microsoft IOT Github page 创建了示例 Hello, World Node.js Windows Universal Sample,但现在我想将此后台应用设置为启动。

我知道我应该使用 iotstartup,但我的应用名称是什么?我只看到这个:

[10.10.xx.xx]: PS C:\> iotstartup list
Headed   : 0ea49cba-1455-4d46-82bf-e3500f805e6b_wzgz7s44cm19c!App
Headed   : 135bb3b6-419d-4692-a777-c9131bc0a419_wzgz7s44cm19c!App
Headed   : DefaultApp_cw5n1h2txyewy!App
Headed   : IoTCoreDefaultApp_hz258y3tkez3a!App
Headed   : Windows.MiracastView_cw5n1h2txyewy!Microsoft.Windows.MiracastView
Headed   : ZWaveBackgroundService_6efsg6e0hggwa!App
Headless : ZWaveBackgroundService_1.0.0.0_arm__6efsg6e0hggwa
Headless : 0ea49cba-1455-4d46-82bf-e3500f805e6b_1.0.0.0_arm__wzgz7s44cm19c
Headless : 135bb3b6-419d-4692-a777-c9131bc0a419_1.0.0.0_arm__wzgz7s44cm19c

至少找到了部分答案。当您通过 Visual Studio 在 "Remote machine" 上 运行 应用程序时,您可以在构建输出 window 中看到包名称为 Full Package Name:

1>------ Deploy started: Project: Win10DropDoorScanner, Configuration: Debug ARM ------
1>Updating the layout...
1>Copying files: Total <1 mb to layout...
1>Deployment complete (7568ms). Full package name: "413be5f8-0fdf-4d23-a0dc-94eca103ac6b_1.0.0.0_arm__wzgz7s44cm19c"
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========