gpt4 book ai didi

c# - 错误 : No exports were found that match the constraint:

转载 作者:太空狗 更新时间:2023-10-29 23:31:18 26 4
gpt4 key购买 nike

我正在构建一个 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)])

最佳答案

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

关于c# - 错误 : No exports were found that match the constraint:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22748683/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com