添加自定义的xmlns后,XAML智能感知不工作 [英] Xaml intellisense not working after adding custom xmlns

查看:153
本文介绍了添加自定义的xmlns后,XAML智能感知不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只能和下面的情况。我有WPF NET。 4.0项目在VS2012 + ReSharper的与XAML视图和用户控件的一些数字。项目编译和工作得很好,但没有XAML智能感知(或任何其他通知,这是XAML文件 - 例如hoovering在宣布控制后无提示)。而这种智能感知总是打破时,我有这个项目中声明的命名空间的xmlns值。例如:

I'm stuck with following situation. I have WPF NET. 4.0 project in VS2012+Resharper with some number of xaml views and user controls. Project compiles and works just fine, but there is no XAML intellisense (or any other notifications that this is xaml file - for example no tooltip after hoovering over declared control). And this intellisense is breaking always when I include xmlns value for namespace declared within this project. For example:

的xmlns:conventers =CLR的命名空间:MyProject.Helpers.Conventers

将打破所有的智能感知。删除这一行 - 将导致它重新工作

will break all intellisense. Removing this line - will cause it to work again.

这仅适用于在同一项目中命名空间 - 当我引用外部的dll和使用的命名空间,它 - 是没有问题的。

It only applies to namespace within the same project - when i reference external dll and use namespace from it - there is no problem.

有谁知道如果我失去了一些东西明显?

Does anyone know if I'm missing something obvious?

推荐答案

好吧,我理解了它?这是很容易的,但刺激性的错误。加入之后;在组装的xmlns = ,智能感知又开始工作。如果任何人都需要它的未来

Ok, i figured it out... It was easy, but irritating mistake. After adding ;assembly= in the xmlns, intellisense started working again. In case anyone else will need it in future

的xmlns:conventers =CLR的命名空间:MyProject.Helpers.Conventers;装配=

工作得很好。

这篇关于添加自定义的xmlns后,XAML智能感知不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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