创建新的 Windows Phone 应用程序项目:“未将对象引用设置为对象的实例"错误(WP8 SDK,VS2012) [英] Creating new Windows Phone App project: "Object reference not set to an instance of an object" error (WP8 SDK, VS2012)

查看:47
本文介绍了创建新的 Windows Phone 应用程序项目:“未将对象引用设置为对象的实例"错误(WP8 SDK,VS2012)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 VS2012 Pro Update 3.我已经下载并安装了 Windows Phone 8 SDK 来为最新的 MS 智能手机操作系统 (WP8) 创建 Windows Phone 应用程序.但是,当我尝试创建新的 Windows Phone 应用程序项目时,出现上述错误.

I have VS2012 Pro Update 3. I've downloaded and installed Windows Phone 8 SDK to create Windows Phone apps for the latest MS smartphone OS (WP8). However, I get the above-mentioned error when I try to create a new Windows Phone App project.

我按照很多论坛和博客的建议卸载并重新安装了WP8 SDK,甚至使用了VS2012和WP8 SDK的修复安装"模式,但这一切都没有帮助.

I deinstalled and reinstalled WP8 SDK as suggested on many forums and blogs, and even used the "repair installation" mode for VS2012 and WP8 SDK, but all this did not help.

如何摆脱这个错误?

附言我的电脑装有 64 位 Windows 8 Pro,CPU 支持此开发所需的 Hyper-V(已成功将此可选组件添加到我的 Windows).其他常见的 Windows 项目,例如 WinForms 和 WPF 应用程序,可以在我的开发环境中创建和编译而不会出现任何问题.

P.S. My pc has Windows 8 Pro 64-bit and the CPU supports Hyper-V needed for this development (added this optional component to my Windows successfully). Other common Windows projects, such as WinForms and WPF apps, can be created and compiled without any problems in my dev env.

推荐答案

我使用试错法解决了我的难题.转到工具"菜单,然后选择扩展和更新",然后选择更新"部分并安装最新的 NuGet 更新.有趣,是吗?

I solved my puzzle using the trial and errors method. Go to the TOOLS menu, then choose 'Extensions and Updates', then the Update section and install the latest NuGet update. Funny, yes?

这篇关于创建新的 Windows Phone 应用程序项目:“未将对象引用设置为对象的实例"错误(WP8 SDK,VS2012)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆