MSBuild.ILMerge.Task (nuget): 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 neoeinstein@gmail.com (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.
Keywords: MSBuild|ILMerge