Static linking in .net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ashutosh

    Static linking in .net


    Though I haven't heard of it, but I still want to ask if there is any
    way to statically link a assembly(dll only) in/to my exe file so that
    the exe file doesn't have any dependency other than the framework's
    assembly?
  • Jon Skeet [C# MVP]

    #2
    Re: Static linking in .net

    On Oct 17, 2:22 pm, Ashutosh <smbs-m...@nospam.nos pamwrote:
    Though I haven't heard of it, but I still want to ask if there is any
    way to statically link a assembly(dll only) in/to my exe file so that
    the exe file doesn't have any dependency other than the framework's
    assembly?
    ILMerge may be what you're after.
    Explore research at Microsoft, a site featuring the impact of research along with publications, products, downloads, and research careers.


    Jon

    Comment

    • Ashutosh

      #3
      Re: Static linking in .net

      Thanks Jon!!
      This looks great!!
      I am curious if there is any such support built directly into VS 2005 or
      2008?? Or if it's possible to do it when the exe is built?

      Jon Skeet [C# MVP] wrote:
      On Oct 17, 2:22 pm, Ashutosh <smbs-m...@nospam.nos pamwrote:
      >
      >Though I haven't heard of it, but I still want to ask if there is any
      >way to statically link a assembly(dll only) in/to my exe file so that
      >the exe file doesn't have any dependency other than the framework's
      >assembly?
      >>
      >
      ILMerge may be what you're after.
      Explore research at Microsoft, a site featuring the impact of research along with publications, products, downloads, and research careers.

      >
      Jon
      >
      --
      Regards,
      Ashutosh Bhawasinka
      email: discussion@ashu tosh.in
      MCSA - Messaging,
      MCTS - .Net Windows Apps


      Comment

      • Jon Skeet [C# MVP]

        #4
        Re: Static linking in .net

        On Oct 17, 3:23 pm, Ashutosh <smbs-m...@nospam.nos pamwrote:
        Thanks Jon!!
        This looks great!!
        I am curious if there is any such support built directly into VS 2005 or
        2008?? Or if it's possible to do it when the exe is built?
        I'm afraid I couldn't say - I've never actually used it myself. You
        could add it as a post build step, of course.

        Jon

        Comment

        • Cowboy \(Gregory A. Beamer\)

          #5
          Re: Static linking in .net

          You can postbuild it. I have only done it in experiments. I find very little
          need to ILMerge in the apps I do. :-)

          --
          Gregory A. Beamer
          MVP, MCP: +I, SE, SD, DBA

          Subscribe to my blog


          or just read it:


          *************** *************** **************
          | Think outside the box! |
          *************** *************** **************
          "Jon Skeet [C# MVP]" <skeet@pobox.co mwrote in message
          news:742314b9-c7a8-4799-8415-ec7e0d3d603f@25 g2000prz.google groups.com...
          On Oct 17, 3:23 pm, Ashutosh <smbs-m...@nospam.nos pamwrote:
          Thanks Jon!!
          This looks great!!
          I am curious if there is any such support built directly into VS 2005 or
          2008?? Or if it's possible to do it when the exe is built?
          I'm afraid I couldn't say - I've never actually used it myself. You
          could add it as a post build step, of course.

          Jon

          Comment

          • Ashutosh

            #6
            Re: Static linking in .net

            Thanks for the info!!!

            I asked this just out or curiosity. I don't have any plans to use them
            as of now :)

            Cowboy (Gregory A. Beamer) wrote:
            You can postbuild it. I have only done it in experiments. I find very
            little need to ILMerge in the apps I do. :-)
            >

            Comment

            • puzzlecracker

              #7
              Re: Static linking in .net

              On Oct 17, 10:37 am, "Cowboy \(Gregory A. Beamer\)"
              <NoSpamMgbwo... @comcast.netNoS pamMwrote:
              You can postbuild it. I have only done it in experiments. I find very little
              need to ILMerge in the apps I do. :-)
              >
              --
              Gregory A. Beamer
              MVP, MCP: +I, SE, SD, DBA
              >
              Subscribe to my bloghttp://feeds.feedburne r.com/GregoryBeamer#
              >
              or just read it:http://feeds.feedburner.com/GregoryBeamer
              >
              *************** *************** **************
              | Think outside the box! |
              *************** *************** **************
              "Jon Skeet [C# MVP]" <sk...@pobox.co mwrote in messagenews:742 314b9-c7a8-4799-8415-ec7e0d3d603f@25 g2000prz.google groups.com...
              On Oct 17, 3:23 pm, Ashutosh <smbs-m...@nospam.nos pamwrote:
              >
              Thanks Jon!!
              This looks great!!
              I am curious if there is any such support built directly into VS 2005 or
              2008?? Or if it's possible to do it when the exe is built?
              >
              I'm afraid I couldn't say - I've never actually used it myself. You
              could add it as a post build step, of course.
              >
              Jon
              What's the point of statical linking , especially with all dll-hell
              issues permeating C++ solved in DotNet?


              Comment

              Working...