The 'clr-namespace' URI refers to a namespace that is not included in the assembly

后端 未结 10 1952
醉梦人生
醉梦人生 2020-12-02 18:32

I\'m trying to include in my XAML some classes which convert values. However, I\'m getting the following error when I compile:

Undefined CLR namespac

10条回答
  •  自闭症患者
    2020-12-02 18:54

    If you reference to an external project, you must specify the assembly as it appears in your project's references:

    xmlns:mdls="clr-namespace:MyProject.Models;assembly=MyProject.Models"
    

提交回复
热议问题