更改命名空间后,Windows Phone App未启动

Ank*_*kit 3 c# windows-phone-7 windows-phone-8

我正在开发一款工作正常,直到2天.但是今天我又开始了,它还没有开始.当我启动It时,它会在启动后立即退出.自上次发布以来,我的代码中没有任何变化.我没有看到关于它的指针.没有任何例外或其他任何事情.我最近的更改包括更改应用图标和包名称.但是在这些变化之后我运行了应用程序.不知道什么是错的?

这是我唯一能提供的:

> 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: DefaultDomain):
> Loaded 'C:\windows\system32\mscorlib.ni.dll'. Skipped loading symbols.
> Module is optimized and the debugger option 'Just My Code' is enabled.
> 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight
> AppDomain): Loaded
> 'C:\windows\system32\System.Windows.RuntimeHost.ni.dll'. Skipped
> loading symbols. Module is optimized and the debugger option 'Just My
> Code' is enabled. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll:
> Silverlight AppDomain): Loaded
> 'C:\windows\system32\System.Windows.ni.dll'. Skipped loading symbols.
> Module is optimized and the debugger option 'Just My Code' is enabled.
> 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight
> AppDomain): Loaded 'C:\windows\system32\System.Net.ni.dll'. Skipped
> loading symbols. Module is optimized and the debugger option 'Just My
> Code' is enabled. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll:
> Silverlight AppDomain): Loaded 'C:\windows\system32\System.ni.dll'.
> Skipped loading symbols. Module is optimized and the debugger option
> 'Just My Code' is enabled. 'TaskHost.exe' (CLR
> C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded
> 'C:\windows\system32\System.Xml.ni.dll'. Skipped loading symbols.
> Module is optimized and the debugger option 'Just My Code' is enabled.
> 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight
> AppDomain): Loaded
> 'C:\Data\Programs\{F397F82A-71C2-4C23-A644-242430FC6247}\Install\NFL.DLL'.
> Symbols loaded. The program '[3252] TaskHost.exe' has exited with code
> 0 (0x0).
Run Code Online (Sandbox Code Playgroud)

Ank*_*kit 11

找到解决方案,原因是我在命名空间中所做的更改:

更改命名空间后,您还应该更新启动对象.转到Project>Properties然后startup object选择包含更新namespace.App对象的对象.

  • 启动对象位于"应用程序"选项卡下,您可能无法在项目属性上默认登陆.而且,它是一个相当令人惊讶的下拉菜单. (3认同)