• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2429
  • Last Modified:

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
0
Syberye
Asked:
Syberye
1 Solution
 
teebonCommented:
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
 
teebonCommented:
What is the main concern for you not to have two DLLs ?
0
Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
Jaime OlivaresCommented:
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
 
Kalpesh ChhatralaSoftware ConsultantCommented:
0
 
SyberyeAuthor Commented:
Not really what I want but for the moment is okay
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now