Linking several .net modules into one .dll
-
Hi! (I hope this is the correct forum for this question) I have a bunch of .net modules, written in different languages (managed c++ and c#). Now I'd like to link them all together into one .dll. I tried using al.exe, but this tool only generates an assembly manifest, that refers to the external modules rather than embeds them into the dll. Then I tried this: I disassembled all modules with ildasm and then tried to re-assembly the .il files with ilasm into one final .dll. Hower this does not work, as my modules contain native functions. What can I do? Thanks in advance - Andre
-
Hi! (I hope this is the correct forum for this question) I have a bunch of .net modules, written in different languages (managed c++ and c#). Now I'd like to link them all together into one .dll. I tried using al.exe, but this tool only generates an assembly manifest, that refers to the external modules rather than embeds them into the dll. Then I tried this: I disassembled all modules with ildasm and then tried to re-assembly the .il files with ilasm into one final .dll. Hower this does not work, as my modules contain native functions. What can I do? Thanks in advance - Andre
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconmultifileassemblyexample.asp[^] Have fun :-D
It's not the fall that kills you: it's the sudden stop - Down by Law, Jim Jamursch (1986)
-
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconmultifileassemblyexample.asp[^] Have fun :-D
It's not the fall that kills you: it's the sudden stop - Down by Law, Jim Jamursch (1986)
Thank you for the link, but this exactly what I wanted to *avoid*: having the assembly split over several modules. Instead I wanted several modules to be physically embedded into one final .dll. Let me explain my motivation: I have a dll written in c++ with managed extensions. I use MC++ as I do a fair amount of IJW and COM-Interop. However, I need a collection derived from CollectionBase that reimplements object* get_Item(int) with a covariant return type (SomeType * get_Item(int)). As this does not seem possible in MC++ but well in C# (I posted my problem before: http://www.codeproject.com/script/comments/forums.asp?forumid=3785#xx455157xx), I decided to write the collections in C#. So I would have a "main" dll e.g. GentleStorm.Nasty.Graphics.dll and a module with the collections GentleStorm.Nasty.Graphics.netmodule It would be nice if I could embed the latter into the first, so that I only have to distribute the .dll - Andre
-
Thank you for the link, but this exactly what I wanted to *avoid*: having the assembly split over several modules. Instead I wanted several modules to be physically embedded into one final .dll. Let me explain my motivation: I have a dll written in c++ with managed extensions. I use MC++ as I do a fair amount of IJW and COM-Interop. However, I need a collection derived from CollectionBase that reimplements object* get_Item(int) with a covariant return type (SomeType * get_Item(int)). As this does not seem possible in MC++ but well in C# (I posted my problem before: http://www.codeproject.com/script/comments/forums.asp?forumid=3785#xx455157xx), I decided to write the collections in C#. So I would have a "main" dll e.g. GentleStorm.Nasty.Graphics.dll and a module with the collections GentleStorm.Nasty.Graphics.netmodule It would be nice if I could embed the latter into the first, so that I only have to distribute the .dll - Andre
there was a upload on gotdotnet, but i cant seem to find it any more. it was called IL Linker, that does exactly what you want. i can email it :) I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
-
there was a upload on gotdotnet, but i cant seem to find it any more. it was called IL Linker, that does exactly what you want. i can email it :) I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
-
Nice tool, leppie. However I need to link a mc++ module with native code as well :( which is something that cannot be done using ildasm/ilasm. - Andre