Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed

    [File]Merge assemblies

    IL Merge

    This has been requested in one form or another numerous times.

    I am sharing the File/Information

    Quote Originally Posted by © Microsoft Research Team

    ILMerge is a utility that can be used to merge multiple .NET assemblies into a single assembly.
    ILMerge takes a set of input assemblies and merges them into one target assembly.

    The first assembly in the list of input assemblies is the primary assembly. When the primary assembly is an executable, then the target assembly is created as an executable with the same entry point as the primary assembly. Also, if the primary assembly has a strong name, and a .snk file is provided, then the target assembly is re-signed with the specified key so that it also has a strong name.

    ILMerge is packaged as a console application. But all of its functionality is also available programmatically.

    There are several options that control the behavior of ILMerge. See the documentation that comes with the tool for details.

    ILMerge runs in the v2.0 .NET Runtime, but it is also able to merge v1 or v1.1 assemblies. However it can merge PDB files only for v2 assemblies.

    Currently, ILMerge works only on Windows-based platforms. It does not yet support Rotor or Mono.

    If you have any problems using ILMerge please contact mbarnett _at_ microsoft _dot_ com. More details are available at the ILMerge web site.

    Similiar information, But more of a read.


    Quote Originally Posted by ©Microsoft Research Team

    ILMerge should work just fine with newer versions of .NET. Just use the option: /targetplatform:v4,<path to your v4 framework directory>. For version 3.5, you probably don't need to set the target platform, but you may need to add the v3.5 framework directory as a /lib option so that assemblies from there can be found. (Unless they're in the GAC in which case they'll be found anyway.)

    ILMerge takes a set of input assemblies and merges them into one target assembly. The first assembly in the list of input assemblies is the primary assembly. When the primary assembly is an executable, then the target assembly is created as an executable with the same entry point as the primary assembly. Also, if the primary assembly has a strong name, and a .snk file is provided, then the target assembly is re-signed with the specified key so that it also has a strong name.

    The current version is 2.10.0219 (created on 19 February 2010). NOTE: There is no longer a version of ILMerge that runs in the v1.1 runtime.

    The v2.0 version of ILMerge runs in the v2.0 .NET Runtime, but it is also able to merge v1 or v1.1 assemblies. However, it can merge PDB files only for v2 (and later) assemblies.

    The v2 version of ILMerge was built with v2.0.50727 of the .NET Runtime. If you have an earlier version (e.g., Beta2 is v2.0.50215), then you need to use a config file: ILMerge.exe.config. (Copy the text from the browser and put into a file with that name. But check to see if you get any extraneous characters that the browser throws in. If so, please let me know and I'll see what I can do.)

    If you use ASP.NET v2.0, then it provides a tool (based on ILMerge) to combine assemblies created during precompilation. You can get more details from the ASP.NET web site.
    File Attached (Offered as Freeware by © Microsoft Research Team)
    Uploaded here for convenience.

    Virus Scan Of Attached File

    How to Credits to Code Project:

    Quote Originally Posted by Rüdiger Klaehn
    Introduction

    As you know, traditional linking of object code is no longer necessary in .NET. A .NET program will usually consist of multiple parts. A typical .NET application consists of an executable assembly, a few assemblies in the program directory, and a few assemblies in the global assembly cache. When the program is run, the runtime combines all these parts to a program. Linking at compile time is no longer necessary.

    But sometimes, it is nevertheless useful to combine all parts a program needs to execute into a single assembly. For example, you might want to simplify the deployment of your application by combining the program, all required libraries, and all resources, into a single .exe file.

    A single project

    If all parts of your program are written by yourself in the same language, you can obviously just add all source files to a single project. The result will be a single DLL or EXE containing all dependencies.

    Collapse
    csc /target:winexe /out:Program.exe
    MainProgram.cs ClassLibrary1.cs ClassLibrary2.cs
    However, if your program is written in multiple languages or if you are using binary third party libraries, you are out of luck.

    .NET Modules

    The .NET compilers already contain options for exactly this. If you compile a project, there is an option to create a module, which is similar to an assembly but without a manifest file. You can then use the al.exe tool to combine some of these modules to a single assembly. This feature makes it possible to create a single assembly that contains multiple languages.

    First, you would compile the program and the class libraries to netmodules using the module target. Then you can use the assembly linker al.exe to combine these modules to a single assembly.


    csc /target:module /out:ClassLibrary1.netmodule ClassLibrary1.cs
    vbc /target:module /out:ClassLibrary2.netmodule ClassLibrary2.vb
    vbc /target:module /out:Program.netmodule Program.vb
    al /target:winexe /out:Program.exe ClassLibrary1.netmodule
    ClassLibrary2.netmodule Program.netmodule
    But unfortunately, this method only works if you have all the required parts of your program either as source code or as .NET modules. If you are useing a third party class library in assembly form, you are again out of luck.

    ILMerge

    Since a .NET module is basically just an assembly without an assembly manifest, it should be possible to convert an assembly to a .NET module, at least that is what I thought. When researching this on Google, I found a tremendously useful tool on Microsoft research called ILMerge. This little gem makes it possible to link multiple assemblies to a single one.

    First, you would compile your libraries to DLLs and your program to an EXE referencing the DLLs. This is exactly what Visual Studio would do if you had multiple libraries and a program referencing these libraries, so there is no need to do this on the command line.

    Collapse
    csc /target:library /out:ClassLibrary1.dll ClassLibrary1.cs
    vbc /target:library /out:ClassLibrary2.dll ClassLibrary2.vb
    vbc /target:winexe /out:Program.exe
    /reference:ClassLibrary1.dll,ClassLibrary2.dll Program.vb
    This will produce a normal .exe that requires the two DLLs in the program directory or in the global assembly cache to run.

    Now you can link these parts to a single self-contained EXE, using ILMerge:

    Collapse
    ilmerge /target:winexe /out:SelfContainedProgram.exe
    Program.exe ClassLibrary1.dll ClassLibrary2.dll
    The nice thing about this is that you can also merge third party assemblies like commercial class libraries into your program. And you do not have to modify your build process. All you have to do is to merge the assemblies to a single EXE before deploying.
    Attached is the Real Gilma MSI, a GUI for the command line.
    Thanks to Tortaleni for finding the gui.

    This should help alot.
    Last edited by NextGen1; 03-03-2010 at 07:12 PM.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  2. The Following 5 Users Say Thank You to NextGen1 For This Useful Post:

    Bombsaway707 (03-02-2010),Houston (03-03-2010),Lolland (03-03-2010),Tortaleni (03-02-2010),Zoom (03-02-2010)

  3. #2
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Woooops, wasn't this alredy posted?
    -Rest in peace leechers-

    Your PM box is 100% full.

  4. #3
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Not as far as my search is concerned

    There has been questions to the fact (4) since I have been here. So answered, Solved, no more threads about it

    Apparently Google is broken for some

    Side note: Whats up with my points and activity..... WT...




     


     


     



    The Most complete application MPGH will ever offer - 68%




  5. #4
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    I did a tutorial on how to merge .dll's into your program.



  6. #5
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    That's great

    Sharing a file, not a tutorial.......it's a useful program


     


     


     



    The Most complete application MPGH will ever offer - 68%




  7. #6
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    My post was @ hejsan

    Thanks for sharing!

    (PS: Do not forget the tutorial on how to load the values of an address(trainer) into a textbox or w/e...)

    =)



  8. The Following User Says Thank You to Blubb1337 For This Useful Post:

    NextGen1 (03-02-2010)

  9. #7
    Bombsaway707's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Gym
    Posts
    8,799
    Reputation
    791
    Thanks
    4,004
    My Mood
    Amused
    Quote Originally Posted by NextGen1 View Post
    Not as far as my search is concerned

    There has been questions to the fact (4) since I have been here. So answered, Solved, no more threads about it

    Apparently Google is broken for some

    Side note: Whats up with my points and activity..... WT...


    The points/activity were on MPGH in the summer, guess the re added them

  10. The Following User Says Thank You to Bombsaway707 For This Useful Post:

    NextGen1 (03-02-2010)

  11. #8
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed

    @ Blubb thanks

    Off topic
    But it doesn't explain why mine is so low, I am always on, always.... If not here, then my iphone
    Last edited by NextGen1; 03-02-2010 at 04:10 PM.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  12. #9
    Bombsaway707's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Gym
    Posts
    8,799
    Reputation
    791
    Thanks
    4,004
    My Mood
    Amused
    Quote Originally Posted by NextGen1 View Post
    But it doesn't explain why mine is so low, I am always on, always.... If not here, then my iphone
    I think that the stats carried over from the summer, i dont think you a member of MPGH last summer? If you weren't then that would explain why its so low
    but anyway on topic: good post I have been looking for something like this.

  13. The Following User Says Thank You to Bombsaway707 For This Useful Post:

    NextGen1 (03-02-2010)

  14. #10
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    How do I use this?
    Edit: NVM Found it out.
    Last edited by Lolland; 03-02-2010 at 04:32 PM.

  15. The Following User Says Thank You to Lolland For This Useful Post:

    NextGen1 (03-02-2010)

  16. #11
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Added a How To in the first post.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  17. #12
    Pixipixel_'s Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    VCExpress.exe || France :D
    Posts
    2,087
    Reputation
    27
    Thanks
    742
    My Mood
    Cool
    You need a virus scan and a screen shot

  18. #13
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    It didn't warrant another thread, Merged threads, added to my tut and gave you thanks.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  19. #14
    guza44_44's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    433
    Reputation
    16
    Thanks
    310
    mmm outa curiosity why does it ask me to install .net framework 1.1.4322 to allow me to run the setup for Gilma but i have 4.0 and should be just fine, i dont really feel up to ruining my pc because i install a lower version, any suggestions?
    [IMG]https://i304.photobucke*****m/albums/nn168/guza44/sig-1.png[/IMG]

  20. #15
    Sixx93's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    673
    Reputation
    21
    Thanks
    250
    My Mood
    Cool
    i have posted ILMerge in another discussion...

Page 1 of 2 12 LastLast

Similar Threads

  1. [Help]Merging files
    By Invidus in forum Visual Basic Programming
    Replies: 5
    Last Post: 11-14-2010, 03:52 AM
  2. Merging file error...
    By jajarem64 in forum Visual Basic Programming
    Replies: 4
    Last Post: 10-28-2010, 08:32 PM
  3. Merging Files into VB Program
    By ppl2pass in forum Visual Basic Programming
    Replies: 0
    Last Post: 02-18-2010, 10:51 PM
  4. File Scan here
    By Neogaidenx in forum Spammers Corner
    Replies: 4
    Last Post: 08-14-2008, 11:30 AM
  5. Free File Hosts
    By Paolo1993 in forum Spammers Corner
    Replies: 5
    Last Post: 04-12-2008, 08:33 PM