简体   繁体   English

MEF DirectoryCatalog未加载单个Export,其他所有工作

[英]MEF DirectoryCatalog not loading single Export, all others work

So I have a single dll that MEF will not load from. 所以我有一个不能从MEF加载的dll。 It just ignores the DLL entirely and doesn't load it. 它只是完全忽略DLL,并且不会加载它。

A manual Assembly.Load("assemblyname") works fine without errors. 手动Assembly.Load("assemblyname")可以正常工作,不会出现错误。

I cannot find any output trace statements or anything. 我找不到任何输出跟踪语句或任何东西。

Anyone have any ideas as to why this single DLL would not load and all others that are referenced exactly the same way with the same export attribute work fine? 任何人都对为什么这个单个DLL无法加载以及使用相同导出属性完全相同引用的所有其他DLL可以正常工作有任何想法? (Also same version of .net, same everything) (.net的版本相同,所有内容都相同)

Anyone know how I can actually get a log of failures on load and why? 有人知道我如何才能真正获得负载失败日志,为什么?

Thanks! 谢谢!

Turns out that this was a typo in a csproj file. 原来,这是csproj文件中的错字。 Thanks though! 不过谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM