问题描述
好的,我正在为 Windows Phone 开发一个应用程序,但我似乎无法弄清楚这个问题是什么.
Okay, so I'm developing an app for Windows Phone, and I can't seem to figure out what this issue is.
首先,我应该说我的应用程序编译时没有警告,没有错误,nada.看起来像一个魅力.
To start with, I should say my application compiles with no warnings, no errors, nada. Looks like a charm.
但是,当我将应用程序构建到模拟器或我手头的两个不同 WP7 设备中的任何一个时,闪屏会显示片刻,然后我返回到设备的主屏幕.
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.
查看输出:
'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 'ApplicationsInstall6D7C6AA5-7D7C-4056-8BF7-1097F7FBAC40InstallSubsplash.ExampleLibrary.dll', Symbols loaded.
'taskhost.exe' (Managed): Loaded 'ApplicationsInstall6D7C6AA5-7D7C-4056-8BF7-1097F7FBAC40InstallClientCore.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% 工作的,然后我更改了一些命名空间和文件夹名称,从那时起,这个问题就阻止了我们进行任何类型的开发.但是,我很困惑为什么会出现与命名空间名称更改和文件夹更改相关的问题,但没有构建错误.
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.
想法?
推荐答案
如果你做过任何命名空间重命名(尤其是 App 对象),请仔细检查项目中的启动对象是否设置正确.
If you've done any namespace renaming (especially of the App object) double check the startup object in the project is set correctly.
这篇关于WP7 应用程序在部署后立即崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!