Binding .Net Assemblies

This is all hypothetical, so please bear with me.

Say I'm writing a tool in C # called Foo. The result is a foo.exe file. I found a great library that I like to use called bar, which I can reference bar.dll in my project. When I create my project, I have foo.exe and bar.dll in my output directory. Okay bye.

I would like to make the link foo.exe and bar.dll so that they are one assembly, foo.exe. I would rather be able to do this in VS2008, but if I need to resort to a command-line tool like al.exe, I don't mind so much.

+5
source share
4 answers

There is ILMerge. Link

+10
source

Set event after assembly in project properties:

ilmerge / out: $ (TargetDir) foo.exe $ (TargetPath) $ (TargetDir) bar.dll

+5
source

Check out the ILMerge tool found here .

+2
source

Thanks to all who responded!

I ended up with NuGenUnify , which provides a GUI wrapper for ilmerge.

+1
source

All Articles