WP7 应用程序在部署后立即崩溃

发布于 2024-11-09 03:11:52 字数 1356 浏览 0 评论 0原文

好的,我正在为 Windows Phone 开发一个应用程序,但我似乎不明白这个问题是什么。

首先,我应该说我的应用程序编译时没有任何警告,没有错误,什么也没有。看起来很有魅力。

但是,当我将应用程序构建到模拟器或我手头的两个不同 WP7 设备中的任何一个时,启动画面会瞬间显示,然后我会返回到设备的主屏幕。

查看输出:

'taskhost.exe' (Managed): Loaded 'mscorlib.dll'
'taskhost.exe' (Managed): Loaded 'System.Windows.RuntimeHost.dll'
'taskhost.exe' (Managed): Loaded 'System.dll'
'taskhost.exe' (Managed): Loaded 'System.Windows.dll'
'taskhost.exe' (Managed): Loaded 'System.Core.dll'
'taskhost.exe' (Managed): Loaded 'System.Xml.dll'
'taskhost.exe' (Managed): Loaded '\Applications\Install\6D7C6AA5-7D7C-4056-8BF7-1097F7FBAC40\Install\Subsplash.ExampleLibrary.dll', Symbols loaded.
'taskhost.exe' (Managed): Loaded '\Applications\Install\6D7C6AA5-7D7C-4056-8BF7-1097F7FBAC40\Install\ClientCore.dll', Symbols loaded.
'taskhost.exe' (Managed): Loaded 'System.Xml.Linq.dll'
'taskhost.exe' (Managed): Loaded 'Microsoft.Phone.dll'
'taskhost.exe' (Managed): Loaded 'Microsoft.Phone.Interop.dll'
The thread '<No Name>' (0xda1003e) has exited with code 0 (0x0).
The thread '<No Name>' (0xd660032) has exited with code 0 (0x0).
The program '[206110770] taskhost.exe: Managed' has exited with code 0 (0x0).

我猜测这可能是开发环境的问题。另一个细节是,在几个版本之前,这是 100% 工作的,然后我更改了一些命名空间和文件夹名称,从那时起,这个问题就阻止了我们进行任何类型的开发。但是,我很困惑为什么会出现与命名空间名称更改和文件夹更改相关的问题,但没有构建错误。

想法?

Okay, so I'm developing an app for Windows Phone, and I can't seem to figure out what this issue is.

To start with, I should say my application compiles with no warnings, no errors, nada. Looks like a charm.

However, when I build the application to either the emulator, or any one of the two different WP7 devices I have on hand, the splash screen shows for a split second, and I'm returned to the home screen of the device.

Looking at the output:

'taskhost.exe' (Managed): Loaded 'mscorlib.dll'
'taskhost.exe' (Managed): Loaded 'System.Windows.RuntimeHost.dll'
'taskhost.exe' (Managed): Loaded 'System.dll'
'taskhost.exe' (Managed): Loaded 'System.Windows.dll'
'taskhost.exe' (Managed): Loaded 'System.Core.dll'
'taskhost.exe' (Managed): Loaded 'System.Xml.dll'
'taskhost.exe' (Managed): Loaded '\Applications\Install\6D7C6AA5-7D7C-4056-8BF7-1097F7FBAC40\Install\Subsplash.ExampleLibrary.dll', Symbols loaded.
'taskhost.exe' (Managed): Loaded '\Applications\Install\6D7C6AA5-7D7C-4056-8BF7-1097F7FBAC40\Install\ClientCore.dll', Symbols loaded.
'taskhost.exe' (Managed): Loaded 'System.Xml.Linq.dll'
'taskhost.exe' (Managed): Loaded 'Microsoft.Phone.dll'
'taskhost.exe' (Managed): Loaded 'Microsoft.Phone.Interop.dll'
The thread '<No Name>' (0xda1003e) has exited with code 0 (0x0).
The thread '<No Name>' (0xd660032) has exited with code 0 (0x0).
The program '[206110770] taskhost.exe: Managed' has exited with code 0 (0x0).

I'm guessing that it may be an issue with the dev environment. One more detail is that a few versions ago this was working 100%, then I changed some namespaces and folder names, and since then this issue has prevented us from doing any kind of dev. However, I'm confused as to why there would be a problem related to namespace name changing and folder change, but no build errors.

Thoughts?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

辞慾 2024-11-16 03:11:52

如果您已完成任何命名空间重命名(尤其是 App 对象),请仔细检查项目中的启动对象是否设置正确。

If you've done any namespace renaming (especially of the App object) double check the startup object in the project is set correctly.

櫻之舞 2024-11-16 03:11:52

尝试在项目上运行Clean

检查项目属性中的启动对象设置是否正确。

检查“WMAppManifest.xml”中的DefaultTask是否指向正确的视图。

Try running Clean on the project.

Check the Startup object is set correctly in the project properties.

Check the DefaultTask in "WMAppManifest.xml" is pointing to the right view.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文