未列出Windows 10 IotStartup应用程序 [英] Windows 10 IotStartup App Not Listed
问题描述
您好,
我已成功将我的应用的发布版本部署到运行Windows IoT的Raspeberry Pi 2中。但我无法将其设置为启动应用程序。
使用时未列出应用程序
IotStartup列表
当我尝试使用
IotStartup添加头部MyAppName
我收到一条警告,上面写着"警告:没有为启动添加头部应用程序"。
该应用程序正在RP2上运行并显示在tlist为MyAppName.exe。
我缺少什么?
谢谢,
Kevin
嗨Kevin,
  我曾希望这可能是一个快速或简单的答案,但不幸的是,我现在尝试了一段时间后,我找不到让它可靠地工作的方法。
部分内容我相信我可以帮你解答,但让IoTstartup实际注册应用程序作为'启动'应用程序是一个我仍在调查的问题。
<跨度>&NBSP; 如果你看一下
常见问题解答页面的结尾,它会提到一些C#/ VB中的通用应用程序无法设置为启动应用程序。
他们提供的解决方法就是从构建类型的"调试"更改为"发布":
我的C#/ VB UWP App使用Visual Studio成功构建,部署和启动,但是当我使用iotstartup.exe使我的应用程序成为"启动应用程序"时,我看到的只是启动画面。我该如何解决这个问题?
有一个已知的问题正在被C#/ VB Apps作为"启动应用程序"进行调查。这可以通过将App的配置更改为Release(而不是Debug)并重新部署到您的设备来解决。请注意,另一种解决方法
是使用C ++而不是C#/ VB。
我可以验证一些样本,如果我构建为'Debug',当我执行iotstartup列表时,我没有在设备上看到它们,但是一旦我使用'release'部署,我确实看到了它们。
现在,将该应用程序设置为"启动"应用程序的另一部分是我一直在努力的事情,而且还没有太多运气。
我尝试过为iotstartup列出的命令的多种变体而没有任何成功:
http://ms-iot.github.io/content/win10/tools/CommandLineUtils.htm
我正在进一步研究这个问题,如果我能为你确定一个解决方案(或者如果它刚刚打破),我会告诉你的。
我希望这个帮助
Hello,
I've successfully deployed a release build of my app to a Raspeberry Pi 2 running Windows IoT from Visual Studio. But I'm having trouble getting it setup as a start up app.
The app isn't listed when using
IotStartup list
and when I try to add it using
IotStartup add headed MyAppName
I get a warning that says "Warning:No headed application was added to startup".
The app is running on the RP2 and shows up in the tlist as MyAppName.exe.
What am I missing?
Thank you,
Kevin
Hi Kevin,
I had hoped that this might be a quick or easy answer, but unfortunately I’ve not been able to find a way to get this to work reliably after trying for a while now.
Part of this I believe I can help answer for you, but getting IoTstartup to actually register the app as a ‘Startup’ app is a question I’m still investigating.
If you look towards the end of the FAQ page it mentions that some Universal apps in C#/ VB are not able to be set as the startup app. The work-around they offer is simply to change from ‘Debug’ to ‘Release’ for build type:
My C#/VB UWP App successfully builds, deploys and launches using Visual Studio, but when I use iotstartup.exe to make my App the 'Startup App' all I see is the splash screen. How do I resolve this?
There is a known issue being actively investigated that occurs with C#/VB Apps as the 'Startup App'. This can be worked around by changing your App's configuration to Release (rather than Debug) and redeploying to your device. Note that another workaround is to use C++ rather than C#/VB.
I can verify that on some samples if I built as ‘Debug’ I wasn’t seeing them on the device when I performed iotstartup list, but once I deployed with ‘release’ I did see them.
Now, the other part of then setting that application as the ‘startup’ app is something I’ve been trying and not having much luck on just yet. I’ve tried a number of variations of the command listed for iotstartup presented here without any success:
http://ms-iot.github.io/content/win10/tools/CommandLineUtils.htm
I’m looking into this further though and if I can identify a solution for you (or if it’s just currently broken) I’ll let you know.
I hope this helps.
这篇关于未列出Windows 10 IotStartup应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!