Embed one DLL into another DLL In C#

Hi,

I have a library write by me using C#. I create a new library and I use the first library in my new library  write using C#.  I want in the finally to have one dll not two dlls.

How can I embed first DLL into second DLL whit out using some external tools like ILMerge.

Thanks
Petre
SyberyeAsked:
Who is Participating?
 
Jaime OlivaresSoftware ArchitectCommented:
In Visual Studio, you have the chance to embed all source files from the first DLL in the second DLL's project "as a link".
Just select the option "Add existing", select all the source files from the first DLL and press the dropdown arrow in the Open button to open as a link. This will prevent to create a copy of the source file.
0
 
teebonProduct ManagerCommented:
Hi Petre,

Since you own source code for both libraries, you can combine the code of both libraries under one single project and compile as a single DLL.
0
 
SyberyeAuthor Commented:
The first dll I used in many other projects. If I change something there I have to change in both location and this is not so good.

Petre
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
teebonProduct ManagerCommented:
What is the main concern for you not to have two DLLs ?
0
 
Kalpesh ChhatralaSoftware ConsultantCommented:
0
 
SyberyeAuthor Commented:
Not really what I want but for the moment is okay
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.