[英]Compiling one C# Project into another
I have a C# Application that uses some other Assemblies, so when I compile, I end up with my .exe and 2 or 3 other .dll Files. 我有一个使用其他程序集的C#应用程序,所以当我编译时,我最终得到我的.exe和2或3个其他.dll文件。 Ideally, I only want 1 .exe file.
理想情况下,我只想要1个.exe文件。 At the moment I use ILMerge for that, but as the Assemblies that I use are Open Source (and under the same license), I wonder if there is an easy way to add them to my Solution and compile them into the .exe?
目前我使用ILMerge,但由于我使用的程序集是开源的(并且在相同的许可下),我想知道是否有一种简单的方法将它们添加到我的解决方案并将它们编译成.exe?
What I do not want: 我不想要的:
I suppose that ILMerge is more or less doing exactly what I want, but if I can apply the merging on a compiler level already, that would be what I want. 我想ILMerge或多或少正在做我想要的,但如果我已经可以在编译器级别上应用合并,那就是我想要的。
Needless to say, the referenced assemblies have no main() function, so no clashes are to be expected. 不用说,引用的程序集没有main()函数,因此不会产生任何冲突。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.