MSBuild ILMerge task allows you to use the famous ILMerge utility (ILMerge nuget package, see https://research.microsoft.com/en-us/people/mbarnett/ILMerge.aspx) in automated builds and/or Visual Studio 2013/15 projects.
It is similar to the ILMerge.MSBuild.Tasks nuget package, originally published by email@example.com (that seems to be abandoned) with the following additional features:
- 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 customizaton;
- It attempts to guess the reasonable merge order for the included assemblies and lets you to finetune 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.
MS Dynamics CRM users: merging in Microsoft.Xrm.Sdk may crash your plugin, exclude it from the merge with Copy Local=false.
See the version list below for details.
Install-Package MSBuild.ILMerge.Task -Version 1.0.5
dotnet add package MSBuild.ILMerge.Task --version 1.0.5
<PackageReference Include="MSBuild.ILMerge.Task" Version="1.0.5" />
paket add MSBuild.ILMerge.Task --version 1.0.5
#r "nuget: MSBuild.ILMerge.Task, 1.0.5"
Supports transitive merge and all ILMerge command-line parameters (including InternalizeExcludeFile). Safe to use with VS2015/Roslyn.
- ilmerge (>= 2.13.307)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on MSBuild.ILMerge.Task:
Art.Gaia ART&MIS Base, Comon, Helper and Extensions
Packaging solution for CRM 365 Customizations
A helpful set of base plugins and extensions for them.
Lib para Criação de Plugins para o Dynamics CRM 365
GitHub repositories (11)
Showing the top 5 popular GitHub repositories that depend on MSBuild.ILMerge.Task:
A Dependency Injection/Inversion of Control tool for .NET
A Notepad++ Plugin to view a Markdown file rendered on-the-fly
Open-Source Remote Administration Tool For Windows C# (RAT)
Easily edit and manage the hosts file for Windows