ILRepack.Lib.MSBuild.Task
2.0.25
See the version list below for details.
dotnet add package ILRepack.Lib.MSBuild.Task --version 2.0.25
NuGet\Install-Package ILRepack.Lib.MSBuild.Task -Version 2.0.25
<PackageReference Include="ILRepack.Lib.MSBuild.Task" Version="2.0.25" />
<PackageVersion Include="ILRepack.Lib.MSBuild.Task" Version="2.0.25" />
<PackageReference Include="ILRepack.Lib.MSBuild.Task" />
paket add ILRepack.Lib.MSBuild.Task --version 2.0.25
#r "nuget: ILRepack.Lib.MSBuild.Task, 2.0.25"
#addin nuget:?package=ILRepack.Lib.MSBuild.Task&version=2.0.25
#tool nuget:?package=ILRepack.Lib.MSBuild.Task&version=2.0.25
ILRepack.Lib.MSBuild.Task
MSBuild task for ILRepack which is an open-source alternative to ILMerge.
Install via NuGet

Install-Package ILRepack.Lib.MSBuild.Task
Supported build tools
- MSBuild
Usage
You just need to install NuGet package to merge all your project dependencies. If you want to customize the process then you can create a file named "ILRepack.targets" in your project folder. You can create it like shown below.
Example "ILRepack.targets"
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="ILRepacker" AfterTargets="Build" Condition="'$(Configuration)' == 'Release'">
<ItemGroup>
<InputAssemblies Include="$(OutputPath)\ExampleAssemblyToMerge1.dll" />
<InputAssemblies Include="$(OutputPath)\ExampleAssemblyToMerge2.dll" />
<InputAssemblies Include="$(OutputPath)\ExampleAssemblyToMerge3.dll" />
</ItemGroup>
<ItemGroup>
<DoNotInternalizeAssemblies Include="ExampleAssemblyToMerge3" />
</ItemGroup>
<ILRepack
Parallel="true"
Internalize="true"
InternalizeExclude="@(DoNotInternalizeAssemblies)"
InputAssemblies="@(InputAssemblies)"
TargetKind="Dll"
OutputFile="$(OutputPath)\$(AssemblyName).dll"
/>
</Target>
</Project>
Configuration
You need to create "ILRepack.Config.props" file in your project folder to configure the behavior of ILRepack.Lib.MSBuild.Task.
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
</PropertyGroup>
</Project>
You can specify following options inside the <PropertyGroup> element to configure the behavior of the ILRepack task.
Specify your custom Targets file path
If you don't want to add "ILRepack.targets" file in your project folder then you can specify your targets file path as shown below.
<ILRepackTargetsFile>$(SolutionDir)ILRepack.targets</ILRepackTargetsFile>
Specify Key File to use for signing
You can specify the path of the SNK file you want to use for signing your assembly as shown below. This configuration option only applies if you are using default targets file provided in NuGet package.
<KeyFile>$(ProjectDir)ILRepack.snk</KeyFile>
Specify whether to clear directory after merging
If you are using default targets file then you may notice that it clears Output directory after merging dependencies. You can turn this functionality off by setting ClearOutputDirectory to False as shown below.
<ClearOutputDirectory>False</ClearOutputDirectory>
Task options
Option | Description |
---|---|
KeyFile | Specifies a key file to sign the output assembly. |
KeyContainer | Specifies a key container to use. |
LogFile | Specifies a log file to output log information. |
Union | Merges types with identical names into one. |
DebugInfo | Enable/disable symbol file generation. |
AttributeFile | Take assembly attributes from the given assembly file. |
CopyAttributes | Copy assembly attributes. |
AllowMultiple | Allows multiple attributes (if type allows). |
TargetKind | Target assembly kind (Exe|Dll|WinExe|SameAsPrimaryAssembly) |
TargetPlatformVersion | Target platform (v1, v1.1, v2, v4 supported). |
TargetPlatformDirectory | Path of Directory where the target platform is located. |
XmlDocumentation | Merge assembly XML documentation. |
LibraryPath | List of paths to use as "include directories" when attempting to merge assemblies. |
Internalize | Set all types but the ones from the first assembly 'internal'. |
RenameInternalized | Rename all internalized types (to be used when Internalize is enabled). |
InternalizeExclude | If Internalize is set to true, any which match these regular expressions will not be internalized. If Internalize is false, then this property is ignored. |
OutputFile | Output name for the merged assembly. |
InputAssemblies | List of assemblies that will be merged. |
DelaySign | Set the key file, but don't sign the assembly. |
AllowDuplicateResources | Allows duplicating resources in the output assembly. |
AllowedDuplicateNamespaces | Allows the specified namespaces from being duplicated into input assemblies. Multiple namespaces are delimited by ",". |
ZeroPeKind | Allows assemblies with Zero PeKind (but obviously only IL will get merged). |
Parallel | Use as many CPUs as possible to merge the assemblies. |
PauseBeforeExit | Pause execution once completed (good for debugging). |
Verbose | Additional debug information during the merge that will be outputted to LogFile. |
NoRepackRes | Does not add the embedded resource 'ILRepack.List' with all merged assembly names. |
Wildcards | Allows (and resolves) file wildcards (e.g., *.dll ) in input assemblies. |
RepackDropAttribute | Name of an attribute (optional). Members in input assemblies marked with this attribute will be dropped during merging. |
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages (8)
Showing the top 5 NuGet packages that depend on ILRepack.Lib.MSBuild.Task:
Package | Downloads |
---|---|
PLib
PLib - Peter Han's library used for creating mods for Oxygen Not Included, a simulation game by Klei Entertainment. Contains methods aimed at improving cross-mod compatibility, in-game user interfaces, and game-wide functions such as Actions and Lighting. An easy-to-use Mod Options menu is also included. |
|
Krypton.Toolkit.Suite.Extended.Software.Updater.Nightly
An extension to the Standard Toolkit, which supports .NET Framework 4.6.2 - 4.8.1, .NET 6 - 9. This package implements software updating features. This package supports all .NET Framework versions starting .NET Framework 4.6.2 - 4.8.1, .NET 6 - 9. Also, all libraries are included targeting each specific framework version for performance purposes. To view all of the extended toolkit package latest version information, please visit: https://github.com/Krypton-Suite/Krypton-Toolkit-Suite-Version-Dashboard/blob/main/Documents/Modules/Extended/Krypton-Toolkit-Suite-Extended-Modules.md |
|
Krypton.Toolkit.Suite.Extended.Software.Updater.Canary
An extension to the Standard Toolkit, which supports .NET Framework 4.6.2 - 4.8.1, .NET Core 3.1 and .NET 5 - 7. This package implements software updating features. This package supports all .NET Framework versions starting .NET Framework 4.6.2 - 4.8.1, .NET Core 3.1 and .NET 5 - 7. Also, all libraries are included targeting each specific framework version for performance purposes. To view all of the extended toolkit package latest version information, please visit: https://github.com/Krypton-Suite/Krypton-Toolkit-Suite-Version-Dashboard/blob/main/Documents/Modules/Extended/Krypton-Toolkit-Suite-Extended-Modules.md |
|
Krypton.Toolkit.Suite.Extended.Software.Updater
An extension to the Standard Toolkit, which supports .NET Framework 4.6.2 - 4.8.1, .NET Core 3.1 and .NET 5 - 7. This package implements software updating features. This package supports all .NET Framework versions starting .NET Framework 4.6.2 - 4.8.1, .NET Core 3.1 and .NET 5 - 7. Also, all libraries are included targeting each specific framework version for performance purposes. To view all of the extended toolkit package latest version information, please visit: https://github.com/Krypton-Suite/Krypton-Toolkit-Suite-Version-Dashboard/blob/main/Documents/Modules/Extended/Krypton-Toolkit-Suite-Extended-Modules.md |
|
HuajiTech.CoolQ.Packing.ILRepack
使用 ILRepack 打包 HuajiTech.CoolQ 应用。 |
GitHub repositories (19)
Showing the top 19 popular GitHub repositories that depend on ILRepack.Lib.MSBuild.Task:
Repository | Stars |
---|---|
wmjordan/PDFPatcher
PDF补丁丁——PDF工具箱,可以编辑书签、剪裁旋转页面、解除限制、提取或合并文档,探查文档结构,提取图片、转成图片等等
|
|
quasar/Quasar
Remote Administration Tool for Windows
|
|
pardeike/Harmony
A library for patching, replacing and decorating .NET and Mono methods during runtime
|
|
cxfksword/jellyfin-plugin-metashark
jellyfin电影元数据插件
|
|
ManlyMarco/RuntimeUnityEditor
In-game inspector and debugging tools for applications made with Unity3D game engine
|
|
cxfksword/jellyfin-plugin-danmu
jellyfin弹幕自动下载插件
|
|
ThePornDatabase/Jellyfin.Plugin.ThePornDB
Jellyfin/Emby Metadata Provider
|
|
DirtyRacer1337/Jellyfin.Plugin.PhoenixAdult
Jellyfin/Emby Metadata Provider for videos from multiple adult sites
|
|
peterhaneve/ONIMods
Peter Han's mods for Oxygen Not Included
|
|
Krypton-Suite/Extended-Toolkit
A companion toolkit for the standard toolkit.
|
|
gurrenm3/BTD-Mod-Helper
A powerful and easy to use API for modding BTD6, BATTD, and other Ninja Kiwi games.
|
|
RandyKnapp/ValheimMods
|
|
EvanMulawski/FanControl.CorsairLink
The unofficial CorsairLink plugin for Fan Control. Adds support for Corsair controllers, liquid coolers, and power supplies. An alternative to iCUE.
|
|
replaysMike/AnyDiff
A CSharp (C#) diff library that allows you to diff two objects and get a list of the differences back.
|
|
Qiu233/QTRHacker
A powerful hack for Terraria
|
|
aedenthorn/ValheimMods
|
|
akintos/UnrealLocres
UE4 localization resource file tool
|
|
TypNull/Tubifarry
Tubifarry is a Lidarr plugin that enhances your music library by fetching music from YouTube, integrating with Slskd for Soulseek access, automating Spotify playlist imports, converting files, and retrieving soundtracks from Radarr and Sonarr.
|
|
diamondo25/MapleShark
MapleShark is a MapleStory sniffer that works with SharpPcap. Sniff dem packetzz!
|
Version | Downloads | Last updated |
---|---|---|
2.0.40 | 3,091 | 2/28/2025 |
2.0.37 | 2,090 | 2/10/2025 |
2.0.34.2 | 24,289 | 8/17/2024 |
2.0.34.1 | 30,815 | 7/15/2024 |
2.0.34 | 37,950 | 6/12/2024 |
2.0.33 | 2,599 | 5/24/2024 |
2.0.32 | 3,571 | 5/7/2024 |
2.0.31 | 1,858 | 4/23/2024 |
2.0.29 | 4,603 | 4/1/2024 |
2.0.26 | 16,242 | 1/11/2024 |
2.0.25 | 2,323 | 1/8/2024 |
2.0.22 | 980 | 1/4/2024 |
2.0.18.2 | 338,404 | 11/13/2020 |
2.0.18.1 | 71,080 | 4/21/2020 |
2.0.18 | 113,318 | 10/6/2019 |
2.0.17 | 11,762 | 7/18/2019 |
2.0.16.1 | 104,027 | 2/22/2019 |
2.0.16 | 23,138 | 9/8/2018 |
2.0.15.5 | 20,500 | 6/26/2018 |
2.0.15.4 | 31,623 | 3/21/2018 |
2.0.15.3 | 17,837 | 2/21/2018 |
2.0.15.2 | 1,642 | 12/24/2017 |
2.0.15.1 | 1,294 | 12/20/2017 |
2.0.15 | 1,278 | 12/19/2017 |
2.0.13 | 50,217 | 5/1/2017 |
2.0.12 | 1,992 | 12/21/2016 |