Customization of MSBuild to add a “AfterBuild” to start ILmerge on referenced projects who have a:
<IlMerge>True</IlMerge>
Exbibit the power and extrem extensibility of MSBuild: Mixing Languages in a Single Assembly in Visual Studio seamlessly with ILMerge and MSBuild – Scott Hanselman.