title: How to Integrate ILMerge into Visual Studio Build Process to Merge Assemblies?
body: <p>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.</p>
  
  <p>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.</p>
  
  <ol>
  <li><p>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?</p></li>
  <li><p>How does this tie into a possible ILMerge.Targets file?</p></li>
  <li><p>Is it better to use the Post-build event?</p></li>
  </ol>