How to Integrate ILMerge into Visual Studio Build Process to Merge Assemblies?
Posted
by AMissico
on Stack Overflow
See other posts from Stack Overflow
or by AMissico
Published on 2010-03-31T19:56:10Z
Indexed on
2010/04/01
2:33 UTC
Read the original article
Hit count: 1168
I want to merge one .NET DLL assembly and one C# Class Library project referenced by a VB.NET Console Application project into one command-line console executable.
I can do this with ILMerge from the command-line, but I want to integrate this merging of reference assemblies and projects into the Visual Studio project. From my reading, I understand that I can do this through a MSBuild Task or a Target and just add it to a C#/VB.NET Project file, but I can find no specific example since MSBuild is large topic. Moreover, I find some references that add the ILMerge command to the Post-build event.
How do I integrate ILMerge into a Visual Studio (C#/VB.NET) project, which are just MSBuild projects, to merge all referenced assemblies (copy-local=true) into one assembly?
How does this tie into a possible ILMerge.Targets file?
Is it better to use the Post-build event?
© Stack Overflow or respective owner