ILMerge.Tools repackages Microsoft's ILMerge into a NuGet package that includes the original files in the tools directory instead of as content. The files included in this package are the identical files that are included in the official ILMerge NuGet package of the same version.
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.
Install-Package ILMerge.Tools -Version 2.14.1208
dotnet add package ILMerge.Tools --version 2.14.1208
<PackageReference Include="ILMerge.Tools" Version="2.14.1208" />
paket add ILMerge.Tools --version 2.14.1208
This package has no dependencies.