Take the 2-minute tour ×

I am writing a C++/CLI which have access/"dependencies" to many DLL COM and DLL .NET libraries.

Is this possible to link/join all these libraries into my C++/CLI program and generate only one executable object in such a way that I never again have to consider these dependencies every time I have to move my object to another computer?


share|improve this question
This may help: stackoverflow.com/questions/668188/… –  Nick Aug 26 '09 at 18:31
add comment

1 Answer

ILMerge is an option for collapsing several managed assemblies into one: http://stackoverflow.com/questions/9376/ilmerge-best-practices

However ILMerge might not be an option:

  • You can't merge the COM DLLs without having source code to them
  • Since you mentioned COM, I'm guessing that your C++/CLI program isn't pure IL: ILMerge won't touch assemblies like this that contain native code. (If your C++/CLI program uses COM through COM interop, and it's otherwise pure .NET, you should be OK.)
share|improve this answer
add comment

Your Answer

