Creating new Windows Phone App project: “Object reference not set to an instance of an object” error (WP8 SDK, VS2012)

こ雲淡風輕ζ 提交于 2020-01-22 16:55:11

问题


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.

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.

How to get rid of this error?


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.


回答1:


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?




回答2:


My Solution: UNINSTALLED NuGet (as updates to it did not work)




回答3:


I have installed visual studio 2012 update 3.

Go to the TOOLS menu, then choose 'Extensions and Updates', then the Update section and install visual studio update.



来源:https://stackoverflow.com/questions/19289594/creating-new-windows-phone-app-project-object-reference-not-set-to-an-instance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!