每当我在Visual Studio for Windows Phone 7中创建一个新应用程序时,每次构建我的应用程序时都会弹出以下错误:The application could not be launchedfor debugging. Ensure that the targetdevice screen is unloc...

每当我在Visual Studio for Windows Phone 7中创建一个新应用程序时,每次构建我的应用程序时都会弹出以下错误:
The application could not be launched
for debugging. Ensure that the target
device screen is unlocked and that
application is installed.
由于此错误,我的应用程序未在模拟器中运行.我尝试重新安装SDK和Visual Studio但似乎无法解决此错误.
解决方法:
当你说“新应用程序”时,你的意思是一个完整的新应用程序,还是你添加了一些代码?如果您尝试将非WP7项目添加到WP7解决方案中,我听说会发生此错误.右键单击解决方案,然后选择“属性”.打开左侧的Configuration Properties面板,确保选中Build和Deploy.
另外,确保您的项目是启动项目(右键单击您的项目并选择Set as Startup Project.
本文标题为:c# – 为我为Windows Phone 7创建的每个应用程序都出错


基础教程推荐
- 京东联盟C#接口测试示例分享 2022-12-02
- Unity shader实现多光源漫反射以及阴影 2023-03-04
- C#集合查询Linq在项目中使用详解 2023-06-09
- 使用c#从分隔文本文件中插入SQL Server表中的批量数据 2023-11-24
- C#中类与接口的区别讲解 2023-06-04
- C# – NetUseAdd来自Windows Server 2008和IIS7上的NetApi32.dll 2023-09-20
- c#读取XML多级子节点 2022-11-05
- c#中利用Tu Share获取股票交易信息 2023-03-03
- C#通过GET/POST方式发送Http请求 2023-04-28
- C# Winform实现石头剪刀布游戏 2023-01-11