ILRepack 2.0.32
See the version list below for details.
dotnet add package ILRepack --version 2.0.32
NuGet\Install-Package ILRepack -Version 2.0.32
<PackageReference Include="ILRepack" Version="2.0.32"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add ILRepack --version 2.0.32
#r "nuget: ILRepack, 2.0.32"
// Install ILRepack as a Cake Addin #addin nuget:?package=ILRepack&version=2.0.32 // Install ILRepack as a Cake Tool #tool nuget:?package=ILRepack&version=2.0.32
Introduction
ILRepack is meant at replacing ILMerge / Mono.Merge.
The former being closed-source (now open-sourced), impossible to customize, slow, resource consuming and many more.
The later being deprecated, unsupported, and based on an old version of Mono.Cecil.
Here we're using latest (slightly modified) Cecil sources (0.11.5), you can find the fork here.
Downloads
You can grab it using NuGet.
Or if you're old-school (and want to stay like that), this direct link will give you the latest nupkg file, which you can open as a zip file.
Syntax
A console application is available (can be used as DLL as well), using same syntax as ILMerge:
Syntax: ILRepack.exe [options] /out:<path> <path_to_primary> [<other_assemblies> ...]
- /help displays this usage
- /keyfile:<path> specifies a keyfile to sign the output assembly
- /keycontainer:<name> specifies a key container to sign the output assembly (takes precedence over /keyfile)
- /log:<logfile> enable logging (to a file, if given) (default is disabled)
- /ver:M.X.Y.Z target assembly version
- /union merges types with identical names into one
- /ndebug disables symbol file generation
- /copyattrs copy assembly attributes (by default only the primary assembly attributes are copied)
- /attr:<path> take assembly attributes from the given assembly file
- /allowMultiple when copyattrs is specified, allows multiple attributes (if type allows)
- /target:kind specify target assembly kind (library, exe, winexe supported, default is same as first assembly)
- /targetplatform:P specify target platform (v1, v1.1, v2, v4 supported)
- /xmldocs merges XML documentation as well
- /lib:<path> adds the path to the search directories for referenced assemblies (can be specified multiple times)
- /internalize[:<excludefile>] sets all types but the ones from the first assembly 'internal'. <excludefile> contains one regex per
line to compare against FullName of types NOT to internalize.
- /renameInternalized rename all internalized types
- /excludeinternalizeserializable do not internalize types marked as Serializable
- /delaysign sets the key, but don't sign the assembly
- /usefullpublickeyforreferences - NOT IMPLEMENTED
- /align - NOT IMPLEMENTED
- /closed - NOT IMPLEMENTED
- /allowdup:Type allows the specified type for being duplicated in input assemblies
- /allowduplicateresources allows to duplicate resources in output assembly (by default they're ignored)
- /zeropekind allows assemblies with Zero PeKind (but obviously only IL will get merged)
- /wildcards allows (and resolves) file wildcards (e.g. `*`.dll) in input assemblies
- /parallel use as many CPUs as possible to merge the assemblies
- /pause pause execution once completed (good for debugging)
- /repackdrop:AttributeClass allows dropping specific members during merging (#215)
- /verbose shows more logs
- /out:<path> target assembly path, symbol/config/doc files will be written here as well
- <path_to_primary> primary assembly, gives the name, version to the merged one
- <other_assemblies> ...
Note: for compatibility purposes, all options can be specified using '/', '-' or '--' prefix.
How to build
Builds directly from within Visual Studio 2022, or using msbuild:
git clone --recursive https://github.com/gluck/il-repack.git
cd il-repack
msbuild
TODO
- Crash-testing
- Add remaining features from ILMerge (closed / align)
- Un-fork Cecil
- Merge import process & reference fixing
DONE
- PDBs & MDBs should be merged (Thanks Simon)
- Fixed internal method overriding public one which isn't allowed in the same assembly (Simon)
- Attribute merge (/copyattrs)
- XML documentation merge
- Clean command line parameter parsing
- Add usage / version
- App.config merge
- Internalizing types (Simon)
- Delay signing (Simon)
- Target platform selection (Simon)
- Automatic internal type renaming
Sponsoring / Donations
If you like this tool and want to express your thanks, you can contribute either time to the project (issue triage or pull-requests) or donate money to the Free Software Foundation.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages (5)
Showing the top 5 NuGet packages that depend on ILRepack:
Package | Downloads |
---|---|
ILRepack.FullAuto
Full automatic ILRepack executor on .NET, .NET Core and .NET Framework |
|
Vostok.Sys.Metrics.ETW
Provides system metrics on Windows platform via ETW |
|
PrzyjaznaFaktura
Biblioteka integracyjna z systemem PrzyjaznaFaktura |
|
Publicise.MSBuild.Task
MSBuild task to make assemblies with all members public. |
|
ClickLib
Package Description |
GitHub repositories (21)
Showing the top 5 popular GitHub repositories that depend on ILRepack:
Repository | Stars |
---|---|
HangfireIO/Hangfire
An easy way to perform background job processing in .NET and .NET Core applications. No Windows Service or separate process required
|
|
xunit/xunit
xUnit.net is a free, open source, community-focused unit testing tool for .NET.
|
|
JavScraper/Emby.Plugins.JavScraper
Emby/Jellyfin 的一个日本电影刮削器插件,可以从某些网站抓取影片信息。
|
|
obfuscar/obfuscar
Open source obfuscation tool for .NET assemblies
|
|
guryanovev/CrystalQuartz
pluggable UI for Quartz.NET
|
Version | Downloads | Last updated |
---|---|---|
2.0.35 | 9,158 | 10/2/2024 |
2.0.34 | 31,252 | 6/10/2024 |
2.0.33 | 11,058 | 5/10/2024 |
2.0.32 | 3,412 | 5/6/2024 |
2.0.31 | 7,683 | 4/21/2024 |
2.0.30 | 4,748 | 4/5/2024 |
2.0.28 | 3,290 | 3/19/2024 |
2.0.27 | 25,907 | 1/15/2024 |
2.0.26 | 1,448 | 1/10/2024 |
2.0.25 | 11,476 | 1/8/2024 |
2.0.24 | 938 | 1/7/2024 |
2.0.18 | 1,139,300 | 9/8/2019 |
2.0.17 | 164,160 | 5/21/2019 |
2.0.16 | 330,421 | 7/30/2018 |
2.0.15 | 172,823 | 12/7/2017 |
2.0.14 | 3,931 | 11/21/2017 |
2.0.13 | 155,094 | 4/6/2017 |
2.0.12 | 20,902 | 10/24/2016 |
2.0.11 | 8,788 | 8/22/2016 |
2.0.10 | 248,112 | 1/8/2016 |
2.0.9 | 4,598 | 12/16/2015 |
2.0.8 | 8,162 | 10/6/2015 |
2.0.5 | 8,534 | 8/19/2015 |
2.0.4 | 3,636 | 7/30/2015 |
2.0.3 | 3,100 | 7/22/2015 |
2.0.2 | 5,396 | 6/18/2015 |
2.0.1 | 7,009 | 6/14/2015 |
2.0.0 | 2,810 | 6/7/2015 |
1.26.0 | 38,171 | 5/2/2015 |
1.25.0 | 67,234 | 2/17/2014 |
1.24.0 | 3,323 | 1/20/2014 |
1.23.0 | 2,996 | 12/16/2013 |
1.22.2 | 5,187 | 3/3/2013 |
1.22.1 | 2,893 | 3/3/2013 |
1.22.0 | 3,018 | 3/3/2013 |
1.21.3 | 2,209 | 2/5/2013 |
1.21.2 | 2,086 | 1/23/2013 |
1.21.1 | 2,025 | 1/22/2013 |
1.20.0 | 3,345 | 12/1/2012 |
1.18.0 | 3,422 | 10/15/2012 |
1.17.0 | 4,012 | 10/3/2012 |