一个解决方案中的多个项目:生成单个exe,而不依赖于.dll [英] Multiple projects in one solution : generate a single exe, not dependent on .dlls

查看:126
本文介绍了一个解决方案中的多个项目:生成单个exe,而不依赖于.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我在一个解决方案中有3个项目(2个WPF项目和一个C#空项目主题)。他们也引用了不同的.dll。



我的问题是:2个可执行文件(来自2个WPF项目之一),并且在bin / debug和bin / release目录中生成了多个.dll。看起来可执行文件不能在没有它们的情况下在目录中进行wpork。我想在最后得到的是一个单一的可执行文件,如果可能没有.dll在最后一个.exe的目录中。



我看看它但我能找到的是如何获得正确的.exe或者你可以找到正确的.exe生成的地方。有什么帮助?

Hello I have 3 projects in one solution ( 2 WPF projects and one C# empty Project theme).Also they have references to different .dlls .

My problem is : 2 executables ( from one of the 2 WPF projects ) and multiple .dlls are been generated in the bin/debug and bin/release directories. Looks like the executable can't wpork without them in the directory. What I would like to obtain at the end is one single executable and if is possible no .dlls in the directory of that final single .exe.

I look about it but all I could find is how to obtain a correct .exe or where you can find your correct .exe generated . Any help ?

推荐答案

也许这篇文章可能对你有所帮助:

从嵌入式资源加载DLL [ ^ ]
Maybe this article might help you:
Load DLL From Embedded Resource[^]


这篇关于一个解决方案中的多个项目:生成单个exe,而不依赖于.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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