Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xaml intellisense not working after adding custom 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-namespace:MyProject.Helpers.Conventers"

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

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?

like image 374
Marek Kembrowski Avatar asked Feb 27 '13 20:02

Marek Kembrowski


1 Answers

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-namespace:MyProject.Helpers.Conventers;assembly="

works just fine.

like image 125
Marek Kembrowski Avatar answered Oct 08 '22 11:10

Marek Kembrowski