找不到Costura.Fody嵌入式库命名空间 [英] Costura.Fody Embedded Library Namespaces Not Found

查看:208
本文介绍了找不到Costura.Fody嵌入式库命名空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Costura.Fody将项目中的大量引用嵌入到一种主库中,从而无需引用API中的每个库. Costura.Fody输出显示我的库的其他部分正在被嵌入,但是当我引用DLL时,未显示嵌入的名称空间,因此将不会生成依赖项目.

I'm using Costura.Fody to embed a bunch of references in my project into a sort of master-library to remove the need to reference every single library in my API. Costura.Fody output shows that the other parts of my library are being embedded, but when I reference the DLL the embedded namespaces aren't being shown, so dependent projects won't build.

在文本编辑器中打开DLL会显示DLL中嵌入的名称空间 ,但在Visual Studio中无法检测到...

Opening the DLL in a text editor shows that the embedded namespaces are in the DLL but can't be detected in Visual Studio...

我正在使用默认的Costura.Fody编织器设置.有什么建议吗?好吗?

I'm using the default Costura.Fody weavers setup. Any advice? Please?

推荐答案

那不是Costura的工作方式. Costura将其他库嵌入到您的主库中,这意味着如果您仅引用主库,则它们将被隐藏.

That's not how Costura works. Costura embeds the other libraries into your main one, which means they're hidden if you only reference the main library.

要获得理想的效果,最好使用ILMerge之类的工具.

To achieve the effect you want you're better off using a tool like ILMerge.

这篇关于找不到Costura.Fody嵌入式库命名空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆