title: How to merge files to single executable or decrease the number of distributed files
body: <p>I have such output files of my WPF application:</p>
  
  <pre><code>de\
  es\
  fr\
  hu\
  it\
  pt-BR\
  Resources\
  ro\
  ru\
  sv\
  zh-Hans\
  FileHelpers.dll
  FileHelpers.DataLink.dll
  FileHelpers.ExcelStorage.dll
  Interop.Excel.dll
  Interop.Office.dll
  Ionic.Zip.dll
  wpftoolkit.dll
  Xceed.Wpf.AvalonDock.dll
  Xceed.Wpf.AvalonDock.Themes.Aero.dll
  Xceed.Wpf.AvalonDock.Themes.Metro.dll
  Xceed.Wpf.AvalonDock.Themes.VS2010.dll
  Xceed.Wpf.DataGrid.dll
  Xceed.Wpf.Toolkit.dll
  MyApp.Common.Extensions.dll
  MyApp.Common.Helpers.dll
  MyApp.Common.Types.Attributes.dll
  MyApp.Security.dll
  MyApp.Wpf.Controls.dll
  MyApp.exe
  MyApp.exe.config
  licence.key
  error.log
  </code></pre>
  
  <p>Everything started from <code>MyApp</code> is developed by myself, everything else done by 3dParty
  I want to distribute my app but in order to do that I want to merge everything what is possible to distribute the minimum ammmount of files.</p>
  
  <p>I was trying to use ilmerge to merge my files in to single one but was getting an error:</p>
  
  <p><code>ILMerge.Merge: ERROR!!: Duplicate type 'XamlGeneratedNamespace.GeneratedInternal
  TypeHelper' found in assembly 'Xceed.Wpf.DataGrid'.</code>
  The answer on that question I found here <a href="http://xceed.com/CS/forums/thread/33259.aspx" rel="nofollow noreferrer">xeed error reason</a>
  Than I've being reading <a href="http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx" rel="nofollow noreferrer">ilmerge limitations</a> and <a href="http://blogs.msdn.com/b/microsoft_press/archive/2010/02/03/jeffrey-richter-excerpt-2-from-clr-via-c-third-edition.aspx" rel="nofollow noreferrer">assembly as resources by Jeffrey Richter</a></p>
  
  <p>So I found Jeffrey Richter solution is quite useful. But I cant apply that for my program because there is no 'Build Action' attribute on assemblies.</p>
  
  <p>Is there anything I can do in order to achieve my goal?</p>
  
  <p><img src="https://i.stack.imgur.com/y0sxE.jpg" alt="enter image description here"></p>