Windows Phone应用程式只有在从商店下载时才会崩溃 [英] Windows Phone app crashes only if downloaded from the store
问题描述
我有一个非常奇怪的问题,我开发了一个Windows手机应用程序,如果安装从视觉工作室完美工作...我上传在商店作为测试版,从商店安装,但应用程序崩溃总是在splashscreen! p>
感谢
如果您的应用程序使用定期Background Agent你正在使用 LaunchForTest
方法测试它,你应该确保你没有在你的发布版本的代码中调用这个。
用适当的条件编译时检查:
#if DEBUG
ScheduledActionService.LaunchForTest(periodicTaskName,TimeSpan.FromSeconds(1));
#endif
注意 DEBUG
在默认情况下在调试配置中定义,而不是在释放中为这种情况定义。
市场/商店检测到这个,但目前他们没有。也许有一天...
I have a really strange problem, I developed a windows phone app that works perfectly if installed from visual studio... I uploaded on the store as beta, installed from the store, but the app crashes always on splashscreen!
Thanks
If you're application uses a periodic Background Agent and you are testing it with the LaunchForTest
method you should make sure that you are not calling this in your release build of the code.
Protect it with appropriate conditional compile time checks:
#if DEBUG
ScheduledActionService.LaunchForTest(periodicTaskName, TimeSpan.FromSeconds(1));
#endif
Note that DEBUG
is defined by default in the "Debug" configuration and not in the "Release" one for situations such as this.
It would be nice if the automated tests done by the marketplace/store detected this but currently they don't. Maybe one day...
这篇关于Windows Phone应用程式只有在从商店下载时才会崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!