Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error : No exports were found that match the constraint:

I'm building an WAF project. When i debug my project. I'm encounted this problem

"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"

How do i slove this ?

I sloved my problem ( Thanks to sgrassie ) I didn't create an NoteView.xaml ( which implements INoteView and add [Export(typeof(INoteView)] at class header )

like image 396
user2877989 Avatar asked Mar 30 '14 19:03

user2877989


1 Answers

You are missing an [Export(typeof(INoteView)] attribute on the class which implements INoteView.

like image 171
Stuart Grassie Avatar answered Sep 23 '22 00:09

Stuart Grassie