Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Linking several .net modules into one .dll

Linking several .net modules into one .dll

Scheduled Pinned Locked Moved C#
csharpc++questiondotnet
6 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VizOne
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • V VizOne

      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

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      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)

      V 1 Reply Last reply
      0
      • D Daniel Turini

        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)

        V Offline
        V Offline
        VizOne
        wrote on last edited by
        #3

        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

        L 1 Reply Last reply
        0
        • V VizOne

          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

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          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

          V 1 Reply Last reply
          0
          • L leppie

            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

            V Offline
            V Offline
            VizOne
            wrote on last edited by
            #5

            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

            L 1 Reply Last reply
            0
            • V VizOne

              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

              L Offline
              L Offline
              leppie
              wrote on last edited by
              #6

              Thats nice to kow, o well there goes my plans for a native/managed C++ assembly... ;P I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups