Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
637 views
in Technique[技术] by (71.8m points)

.net - 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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...