On this page... (hide)

ILMerge

ILMerge is a utility that can be used to merge multiple .NET assemblies into a single assembly. It is freely available for use from the Tools & Utilities page at the Microsoft .NET Framework Developer Center.

http://research.microsoft.com/en-us/people/mbarnett/ILMerge.aspx
http://www.codeproject.com/Articles/9364/Merging-NET-assemblies-using-ILMerge

 

ilmerge /log:merge.log /target:winexe /out:tool.exe origtool.exe log4net.dll NDesk.Options.dll classlibrary.dll

 

 

ILMerge version 2.13.307.0
Copyright (C) Microsoft Corporation 2004-2006. All rights reserved.
ILMerge /log:merge.log /target:winexe /out:bulktool.exe origtool.exe log4net.dll NDesk.Options.dll classlibrary.dll
Set platform to 'v4', using directory 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\..\v4.0.30319' for mscorlib.dll
Running on Microsoft (R) .NET Framework v4.0.30319
mscorlib.dll version = 4.0.0.0
The list of input assemblies is:
        origtool.exe
        log4net.dll
        NDesk.Options.dll
        classlibrary.dll
Trying to read assembly from the file 'C:\Users\mpaulukonis\Documents\Visual Studio 2010\Projects\BulkUserUpdates\CommandLineRunner\bin\Debug\origtool.exe'.
        Successfully read in assembly.
        There were no errors reported in origtool's metadata.
Trying to read assembly from the file 'C:\Users\mpaulukonis\Documents\Visual Studio 2010\Projects\BulkUserUpdates\CommandLineRunner\bin\Debug\log4net.dll'.
Can not find PDB file. Debug info will not be available for assembly 'log4net.dll'.
        Successfully read in assembly.
        There were no errors reported in log4net's metadata.
Trying to read assembly from the file 'C:\Users\mpaulukonis\Documents\Visual Studio 2010\Projects\BulkUserUpdates\CommandLineRunner\bin\Debug\NDesk.Options.dll'.
Can not find PDB file. Debug info will not be available for assembly 'NDesk.Options.dll'.
        Successfully read in assembly.
        There were no errors reported in NDesk.Options's metadata.
Trying to read assembly from the file 'C:\Users\mpaulukonis\Documents\Visual Studio 2010\Projects\BulkUserUpdates\CommandLineRunner\bin\Debug\classlibrary.dll'.
        Successfully read in assembly.
        There were no errors reported in classlibrary's metadata.
Checking to see that all of the input assemblies have a compatible PeKind.
        origtool.PeKind = ILonly, Requires32bits
        log4net.PeKind = ILonly
        NDesk.Options.PeKind = ILonly
        classlibrary.PeKind = ILonly
All input assemblies have a compatible PeKind value.
Using assembly 'origtool' for assembly-level attributes for the target assembly.
Merging assembly 'origtool' into target assembly.
Merging assembly 'log4net' into target assembly.
Assembly level attribute 'System.Security.AllowPartiallyTrustedCallersAttribute' from assembly 'log4net' being deleted from target assembly
Merging assembly 'NDesk.Options' into target assembly.
Merging assembly 'classlibrary' into target assembly.
Copying 2 Win32 Resources from assembly 'origtool' into target assembly.
Transferring entry point 'CommandLineRunner.Program.Main(System.String[])' from assembly 'origtool' to assembly 'bulktool'.
        There were no errors reported in the target assembly's metadata.
ILMerge: Writing target assembly 'bulktool.exe'.
AssemblyResolver: Assembly 'log4net' is referencing assembly 'System.Configuration'.
        AssemblyResolver: Attempting referencing assembly's directory.
        AssemblyResolver: Did not find assembly in referencing assembly's directory.
        AssemblyResolver: Attempting input directory.
        AssemblyResolver: Did not find assembly in input directory.
        AssemblyResolver: Attempting user-supplied directories.
        AssemblyResolver: No user-supplied directories.
        AssemblyResolver: Attempting framework directory.
Can not find PDB file. Debug info will not be available for assembly 'System.Configuration'.
Resolved assembly reference 'System.Configuration' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\..\v4.0.30319\System.Configuration.dll'. (Used framework directory.)
Location for referenced module 'Kernel32.dll' is ''
Location for referenced module 'libc' is ''
Location for referenced module 'netapi32.dll' is ''
Location for referenced module 'advapi32.dll' is ''
Location for referenced module 'kernel32' is ''
Location for referenced assembly 'mscorlib' is 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll'
        There were no errors reported in  mscorlib's metadata.
Location for referenced assembly 'System.Data' is 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Data.dll'
        There were no errors reported in  System.Data's metadata.
Location for referenced assembly 'System.Web' is 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Web.dll'
        There were no errors reported in  System.Web's metadata.
Location for referenced assembly 'System' is 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\system.dll'
        There were no errors reported in  System's metadata.
Location for referenced assembly 'System.Xml' is 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Xml.dll'
        There were no errors reported in  System.Xml's metadata.
Location for referenced assembly 'System.Configuration' is 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Configuration.dll'
        There were no errors reported in  System.Configuration's metadata.
Location for referenced assembly 'Microsoft.VisualBasic' is 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.VisualBasic.dll'
        There were no errors reported in  Microsoft.VisualBasic's metadata.
ILMerge: Done.