Wpf – Undefined CLR namespace

wpf

I have the following:

Error! Error!

The error says The 'clr-namespace' URI refers to a namespace '{0}' that is not included in the assembly.

I've build and rebuild but nothing happens. I'm sure this must work, because a WPF demo app that I downloaded has everything the same. What's going on?

Best Answer

Assuming your ViewModel folder isn't empty (or there actually is a type with BlooblieBlablie.ViewModel as its namespace), and BlooblieBlablie is the assembly name, the following should work:

xmlns:vm="clr-namespace:BlooblieBlablie.ViewModel;assembly=BlooblieBlablie"
Related Topic