尝试在VS2012中定义xmlns时,Intellisense无法正常工作 [英] Intellisense not working when trying to define an xmlns in VS2012

查看:97
本文介绍了尝试在VS2012中定义xmlns时,Intellisense无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在xaml中的一个用户控件中添加一个名称空间.在Visual Studio 2010中,我只需要键入xmlns:blahblah=,它将添加引号,并为我提供要添加为名称空间定义的程序集的建议的完整列表.

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.

在visual studio 2012中,我开始输入它,输入时我立即收到xaml错误,没有任何建议.问题是,我不知道需要添加什么确切的信息,因此我有点依赖于智能感知.

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?

推荐答案

问题似乎是我在应用程序中使用.NET 4.0 Client Profile的事实.我继续并将其转移到.NET 4.5(完整),但是我确信.NET 4.0(完整)也能正常工作.它似乎已经解决了我遇到的几乎所有智能感知问题.

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.

我不知道转换的不利之处,尽管对于4.5版本甚至没有Client Profile版本

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

这篇关于尝试在VS2012中定义xmlns时,Intellisense无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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