MSBuild ILMerge task NuGet Package

MSBuild ILMerge task allows you to use the famous ILMerge utility (ILMerge nuget package, see http://research.microsoft.com/en-us/people/mbarnett/ILMerge.aspx) in automated builds and/or Visual Studio 2019 projects.
It is similar to the ILMerge.MSBuild.Tasks nuget package, originally published by [email protected] (that seems to be abandoned) with the following additional features:

- version 2.0 is able to merge packages referenced from SDK-style projects;
- It supports all the latest ILMerge options;
- ILMerge.exe is discovered as package dependency;
- The .targets file overrides the CopyFilesToOutputDirectory build target, leaving the AfterBuild target free for further customization;
- It attempts to guess the reasonable merge order for the included assemblies and lets you to fine-tune it with a configuration file.

ILMerge.exe is not included into this package because its license prohibits redistribution.

Referencing it as package dependency and loading it from its package location ensures that the latest ILMerge version is always used.

NB: to use non-default configuration, copy ILMerge.props from package content folder to your project and add <Import Project="ILMerge.props" /> to the .csproj file.




Got any MSBuild ILMerge task Question?





Info

Version: 2.0.0-pre501
Author(s): Alexander Nosenko
Last Update: Tuesday, August 10, 2021
.NET Fiddle: Create the first Fiddle
Project Url: https://dev.azure.com/Refactorius/MsBuild.ILMerge.Task
NuGet Url: https://www.nuget.org/packages/MSBuild.ILMerge.Task


Install
Install-Package MSBuild.ILMerge.Task
dotnet add package MSBuild.ILMerge.Task
paket add MSBuild.ILMerge.Task
MSBuild.ILMerge.Task Download (Unzip the "nupkg" after downloading)

5 packages depend on this package.


Tags



STATS

must-have-score

5.3

avg-downloads-per-day

163

days-since-last-release

989