Compiling a static .NET executable

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mctodd333@hotmail.com

    Compiling a static .NET executable

    Hello,
    I was wondering if there is a way in .NET to do the following:

    Suppose I have a test.exe (I have the source also) which uses lib1.dll
    and lib2.dll (which are .NET assemblies); Is it possible to compile the
    3 files into 1 static executable so that I don't have to have lib1.dll
    and lib2.dll available on the computer I'm running test.exe on?


    Thanks,

  • Chris Mullins

    #2
    Re: Compiling a static .NET executable

    This isn't quite what you're looking for, but will do static linking of .Net
    into Native Images.

    It's a great, great tool - it allows you to build and deploy .Net
    applications withour requiring people to have the .Net framework installed.



    --
    Chris Mullins, MCSD.Net, MCPD:Enterprise



    <mctodd333@hotm ail.comwrote in message
    news:1158614905 .362454.183260@ e3g2000cwe.goog legroups.com...
    Hello,
    I was wondering if there is a way in .NET to do the following:
    >
    Suppose I have a test.exe (I have the source also) which uses lib1.dll
    and lib2.dll (which are .NET assemblies); Is it possible to compile the
    3 files into 1 static executable so that I don't have to have lib1.dll
    and lib2.dll available on the computer I'm running test.exe on?
    >
    >
    Thanks,
    >

    Comment

    • Jon Skeet [C# MVP]

      #3
      Re: Compiling a static .NET executable

      <mctodd333@hotm ail.comwrote:
      Hello,
      I was wondering if there is a way in .NET to do the following:
      >
      Suppose I have a test.exe (I have the source also) which uses lib1.dll
      and lib2.dll (which are .NET assemblies); Is it possible to compile the
      3 files into 1 static executable so that I don't have to have lib1.dll
      and lib2.dll available on the computer I'm running test.exe on?
      See if this is any help:
      Explore research at Microsoft, a site featuring the impact of research along with publications, products, downloads, and research careers.


      --
      Jon Skeet - <skeet@pobox.co m>
      http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
      If replying to the group, please do not mail me too

      Comment

      • SP

        #4
        Re: Compiling a static .NET executable


        <mctodd333@hotm ail.comwrote in message
        news:1158614905 .362454.183260@ e3g2000cwe.goog legroups.com...
        Hello,
        I was wondering if there is a way in .NET to do the following:
        >
        Suppose I have a test.exe (I have the source also) which uses lib1.dll
        and lib2.dll (which are .NET assemblies); Is it possible to compile the
        3 files into 1 static executable so that I don't have to have lib1.dll
        and lib2.dll available on the computer I'm running test.exe on?
        You can try .Net Reactor at www.eziriz.com. I don't use this feature as my
        DLLs are used by multiple executables but it does do this as well as
        offering code protection.

        PS

        Comment

        Working...