Intellisense not working when trying to define an xmlns in VS2012

≯℡__Kan透↙ 提交于 2019-12-08 08:03:41

问题


I am trying to add a namespace to one of my usercontrols in xaml. In visual studio 2010 I could just type xmlns:blahblah= and it would add the quotations and offer me a whole list of suggestions of assemblies to add as namespace definitions.

In visual studio 2012 I start typing it out and I'm immediately getting xaml errors as I'm typing and no suggestions. The problem is, I don't know what the exact ones I need to add, so I'm a little dependent on the intellisense.

Regular intellisense works just fine. Why is this?


回答1:


The problem seems to have been the fact that I was using .NET 4.0 Client Profile for my application. I went ahead and transferred it over to .NET 4.5(full), but I am sure .NET 4.0(full) would work just as well. It seemed to have fixed nearly all of the intellisense problems I've been having.

I don't know what the downsides are to switching will be, though for 4.5 there isn't even a Client Profile version



来源:https://stackoverflow.com/questions/14108659/intellisense-not-working-when-trying-to-define-an-xmlns-in-vs2012

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