ILRepack.Lib.MSBuild.Task 2.0.15.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package ILRepack.Lib.MSBuild.Task --version 2.0.15.3
NuGet\Install-Package ILRepack.Lib.MSBuild.Task -Version 2.0.15.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ILRepack.Lib.MSBuild.Task" Version="2.0.15.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ILRepack.Lib.MSBuild.Task --version 2.0.15.3
#r "nuget: ILRepack.Lib.MSBuild.Task, 2.0.15.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ILRepack.Lib.MSBuild.Task as a Cake Addin
#addin nuget:?package=ILRepack.Lib.MSBuild.Task&version=2.0.15.3

// Install ILRepack.Lib.MSBuild.Task as a Cake Tool
#tool nuget:?package=ILRepack.Lib.MSBuild.Task&version=2.0.15.3

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>$([System.IO.Path]::GetDirectoryName($(MSBuildProjectDirectory)))\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>
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on ILRepack.Lib.MSBuild.Task:

Package Downloads
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 应用。

ILRepack.Lib.NET

Modified original ILRepack by changing functionality for using ModuleDefinitions instead of file names to repack assemblies.

GitHub repositories (12)

Showing the top 5 popular GitHub repositories that depend on ILRepack.Lib.MSBuild.Task:

Repository Stars
wmjordan/PDFPatcher
PDF补丁丁——PDF工具箱,可以编辑书签、剪裁旋转页面、解除限制、提取或合并文档,探查文档结构,提取图片、转成图片等等
quasar/Quasar
Remote Administration Tool for Windows
ManlyMarco/RuntimeUnityEditor
In-game inspector and debugging tools for applications made with Unity3D game engine
sailro/EscapeFromTarkov-Trainer
Escape from Tarkov (EFT) Trainer - Internal
DirtyRacer1337/Jellyfin.Plugin.PhoenixAdult
Jellyfin/Emby Metadata Provider for videos from multiple adult sites
Version Downloads Last updated
2.0.29 489 4/1/2024
2.0.26 10,681 1/11/2024
2.0.25 597 1/8/2024
2.0.22 525 1/4/2024
2.0.18.2 200,072 11/13/2020
2.0.18.1 61,455 4/21/2020
2.0.18 89,033 10/6/2019
2.0.17 8,782 7/18/2019
2.0.16.1 77,517 2/22/2019
2.0.16 22,457 9/8/2018
2.0.15.5 18,454 6/26/2018
2.0.15.4 31,380 3/21/2018
2.0.15.3 16,372 2/21/2018
2.0.15.2 1,447 12/24/2017
2.0.15.1 1,090 12/20/2017
2.0.15 1,076 12/19/2017
2.0.13 49,912 5/1/2017
2.0.12 1,616 12/21/2016

* Added ability to define config file to customize the merging process.
* Now developers can create target file named "ILRepack.targets" in the project folder and it will be used for merging assemblies rather than one provided with NuGet package.