Error: 'Cannot create unknown type '{clr-namespace:NameSpace.Properties}Settings'.'

有些话、适合烂在心里 提交于 2019-11-28 07:15:13
javad amiry

I had set the file's "Build Action" property to "Resource". When I changed it to "Page" the problem was resolved.

Keep your "Build Action" property to "Resource" and just change this row: xmlns:properties="clr-namespace:Kavand.UI.Properties" with this: xmlns:properties="clr-namespace:Kavand.UI.Properties;assembly=Kavand.UI"

Just posting another potential solution, because i just recently stumbled over this exception.

It could be that your referenced class-cefinition (in your case "Kavand.UI.Properties.Settings") does not use "public"-access-modifier.

So in my case i could solve this problem by writing public before the class definition.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!