Can't xmlns reference to other project in XAML

i have a wpf project like this: 在这里输入图像描述

in a xaml file in my RCISP.WPF project i want to refrence a class define in my RCISP.Common

Project. When I refrence to this class i got a xaml Eror like this: 在这里输入图像描述

Assembly 'mayclass' was not found.Verify that you are not missing as assembly reference.Also,verify that your project and all referenced assemblies have been built;

i have referenc to RCISP.Common in my RCISP.WPF...


The assembly part of the tag be the assembly name of the project you are referencing and unless you have specifically changed that to FamilyDto it will be the same as the name of your project eg RCSIP.Common

so

xmlns:CommonLayer="clr-namespace:RCISP.Common.Dto.Faimily;assembly=RCSIP.Common"

If your assembly is called FamilyDto then make sure you build your project as the editor needs the project to be compiled before it can correctly determine the reference is valid


你的程序集的名字可能是RCISP.Common,所以xmlns应该是: xmlns:CommonLayer="clr-namespace:RCISP.Common.Dto.Family;Assembly=RCISP.Common

链接地址: http://www.djcxy.com/p/34478.html

上一篇: 将Clr命名空间映射到默认的xaml命名空间

下一篇: 无法将xmlns引用到XAML中的其他项目