.NET合并类库引用 [英] .NET merge class library references

查看:225
本文介绍了.NET合并类库引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个类库,它包含WPF用户控件。该库有一定的相关性,但我想将它部署为一个程序集。据我所知IlMerge有一些问题与WPF。我想Costura,但它仅适用于应用程序,而不是为类库(因为我已经找到了<一href="http://$c$c.google.com/p/costura/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&groupby=&sort=&id=28"相对=nofollow>这里)。有什么办法来实现我的目标?

I have a class library which contains WPF user control. This library has some dependencies but I want to deploy it as one assembly. As I know IlMerge has some problems with WPF. I tried Costura but it works only for applications, not for class libraries (as I have found out here). Is there any way to achieve my goal?

推荐答案

随着贡献者Costura之一,我现在可以证实,它适用于库以及应用程序。

As one of the contributors to Costura I can now confirm that it works for libraries as well as applications.

事实上,所有的单元测试Costura都在一个库中,所以它肯定工程。

In fact all the unit tests for Costura are on a library, so it definitely works.

这篇关于.NET合并类库引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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