我正在建立一个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"
我该如何解决这个问题?
我解决了我的问题(感谢 sgrassie ) 我没有创建NoteView.xaml(它实现了INoteView并在类标题中添加[Export(typeof(INoteView)])
答案 0 :(得分:3)
您在实现[Export(typeof(INoteView)]
的类中缺少INoteView
属性。