Windows Phone 7 - 无法启动应用程序进行调试

new*_*one 1 visual-studio-debugging windows-phone-7

我创建了一个Windows Phone 7应用程序并想要调试它(F5).但是当我按下F5时,我得到的错误是:

The application could not be launched for debugging. 
Ensure that the target device screen is unlocked 
and that the application is installed.
Run Code Online (Sandbox Code Playgroud)

我不知道为什么会出现这种失败.

希望有人有个主意.我使用Visual Studio 2010 Premium.

Thanx newone

Phi*_*ens 7

我遇到了同样的问题.就我而言,从xaml生成的文件已损坏.(例如MainPage.g.cs).为了解决这个问题,我不得不删除这些文件并让系统重新生成它们.

脚步

  1. 关闭VS2010和模拟器
  2. 删除obj和debug文件夹
  3. 打开您的解决方案并重建