Error: Export not found, which corresponds to the restriction:

I am creating a WAF project. When I debug my project. I ran into 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 to do it?

I transferred my problem (thanks sgrassie ) I did not create NoteView.xaml (which implements INoteView and adds [Export (typeof (INoteView)] in the class header))

+4
source share
1 answer

A class that implements does INoteViewnot have an attribute [Export(typeof(INoteView)].

+3
source

Source: https://habr.com/ru/post/1534154/


All Articles