user2877989
user2877989

Reputation: 703

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 )

Upvotes: 7

Views: 6208

Answers (1)

Stuart Grassie
Stuart Grassie

Reputation: 3073

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

Upvotes: 6

Related Questions