我在建一个WAF项目。当我调试我的项目时。我遇到了这个问题

"The composition produced a single composition error. The root cause is provided below.
 Review the CompositionException.Errors property for more detailed information.\r\n\r\n1)
 No exports were found that match the constraint: \n\tContractName\tWaf.InformationManager.OneNote.Modules.Applications.Views.INoteView\n\t
 RequiredTypeIdentity\tWaf.InformationManager.OneNote.Modules.Applications.Views.INoteView\r\n"

我怎么解决这个问题?
我解决了我的问题(多亏了格拉西)
我没有创建noteview.xaml(它实现了inoteview并在类头添加了[export(typeof(inoteview)]

最佳答案

您在实现[Export(typeof(INoteView)]的类上缺少INoteView属性。

09-18 03:24