Intellisense not working when trying to define an

2019-06-01 11:20发布

问题:

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