Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Importing my dll's into a single console executable file

Posted on 2006-07-18
3
Medium Priority
?
433 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 600 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 1400 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

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.

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

618 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