How to Integrate ILMerge into C#/VB.NET (MSBuild) Projects 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/03/31 20:53 UTC
Read the original article Hit count: 764

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.

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?

© Stack Overflow or respective owner

Related posts about msbuild

Related posts about ilmerge