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. Visual Basic
  4. Including dlls in an exe

Including dlls in an exe

Scheduled Pinned Locked Moved Visual Basic
question
5 Posts 3 Posters 0 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.
  • H Offline
    H Offline
    hertz_j
    wrote on last edited by
    #1

    Is their a way to include all referenced dlls into the compiled exe file? /Thaks Johan

    C K 2 Replies Last reply
    0
    • H hertz_j

      Is their a way to include all referenced dlls into the compiled exe file? /Thaks Johan

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      You could add them as resources. But, you'll need to extract them back to the disk in order to use them.


      "On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." --Charles Babbage (1791-1871) My: Website | Blog

      H 1 Reply Last reply
      0
      • C Colin Angus Mackay

        You could add them as resources. But, you'll need to extract them back to the disk in order to use them.


        "On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." --Charles Babbage (1791-1871) My: Website | Blog

        H Offline
        H Offline
        hertz_j
        wrote on last edited by
        #3

        Ok, Well I guess I could but it dont think it would be worth the work it involves. But thanks anyway. /Johan -- modified at 9:49 Tuesday 11th April, 2006

        1 Reply Last reply
        0
        • H hertz_j

          Is their a way to include all referenced dlls into the compiled exe file? /Thaks Johan

          K Offline
          K Offline
          kasik
          wrote on last edited by
          #4

          You can use ILMerge[^] to combine compiled .Net assemblies. Its a command line program so you can just load up cmd and run something similar to the following (as long as ILMerge.exe is somewhere in your PATH):

          ilmerge /out:MyExe.exe MainAssembly.exe ReferencedDll1.dll ReferencedDll2.dll

          That will combine MainAssembly.exe, ReferencedDll1.dll and ReferencedDll2.dll into a stand alone exe called MyExe.exe. This exe can then be distributed on its own. Hope this helps :) Cheers, Will H

          H 1 Reply Last reply
          0
          • K kasik

            You can use ILMerge[^] to combine compiled .Net assemblies. Its a command line program so you can just load up cmd and run something similar to the following (as long as ILMerge.exe is somewhere in your PATH):

            ilmerge /out:MyExe.exe MainAssembly.exe ReferencedDll1.dll ReferencedDll2.dll

            That will combine MainAssembly.exe, ReferencedDll1.dll and ReferencedDll2.dll into a stand alone exe called MyExe.exe. This exe can then be distributed on its own. Hope this helps :) Cheers, Will H

            H Offline
            H Offline
            hertz_j
            wrote on last edited by
            #5

            Thanks I'll try that.

            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