Solved

Importing my dll's into a single console executable file

Posted on 2006-07-18
3
429 Views
Last Modified: 2012-05-05
How can i compile a C# console application so that all of my dependent dll's are compiled into the executable?

Thanks.
0
Comment
Question by:eddyevations
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 20

Assisted Solution

by:Daniel Van Der Werken
Daniel Van Der Werken earned 150 total points
ID: 17135104
Reference this:

http://msdn2.microsoft.com/en-us/library/6s2x2bzy.aspx

I'm pretty sure you're looking for the /reference command line option.
0
 
LVL 10

Expert Comment

by:athapa
ID: 17135169
I don't think you can embedd the referenced dll's inside your executable.

You could embed them  in your executable and then extract them during the runtime. But you'd have to load the assembly and acces the classes inside and it won't be as easy as just adding reference to the dependent dlls.

AT
0
 
LVL 13

Accepted Solution

by:
BlackTigerX earned 350 total points
ID: 17135312
you can use the ILMerge tool
here's an example of how to use it, it's quite simple (but command line)

ilmerge /target:winexe /out:ResultExecutable.exe InputExecutable.exe SomeAssembly.dll SomeOtherAssembly.dll

check this article:
http://petesbloggerama.blogspot.com/2005/01/ilmerge-assemblies-and-how-to-set.html

http://ebersys.blogspot.com
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question