ILMerge & Keep Assembly Name

I need to merge some dlls and both the file name and assembly name need to be the same as for my main dll (mydll.dll). I also need the pdb file. How do I get this done?

Here are a few things I tried:


    Just use ILMerge mydll.dll .... /out:mydll.dll This fails with "Access to the path ...mydll.pdb is denied."

    </li> <li>

    Rename mydll.dll to mydllTemp.dll and mydll.pdb to mydllTemp.pdb and then ILMerge mydelltemp.dll .... /out:mydll.dll This fails with "The pdb associated with ...mydlltemp.dll is out of date" I think this is because ilmerge looks at the assembly name to find the pdb, hence it looks for mydll.pdb which was renamed.

    </li> <li>

    Rename mydll.dll to mydllTemp and then ILMerge mydelltemp.dll .... /out:mydll.dll This works without errors but when I attach the debugger to a process it does not trigger

    </li> <li>

    ILMerge mydll.dll ... /out:mydlltemp.dll rename mydlltemp.dll to mydll.dll and mydlltemp.pdb to mydll.pdb Now I can attach the debugger to a process with breakpoints being triggered. However, the assembly name now is mydlltemp instead of mydll

    </li> </ul>

    So how can I get this to work AND have the original assembly name?


    You didn't really mention is this is in the course of standard development or if this is part of a build process.

    If it's for standard development, do you really need everything merged just to test things out?

    If it's for your build process, you can have the output go to a different directory (which you will probably need to mkdir first) and then you can reuse the same assembly name.


    merge to another directory, use /out:somedir\mydll.dll


  • App icons don't match the 57 and 114 field icons in MonoTouch!
  • Shell Script for renaming and relocating the files
  • Syntax error in Update statement against Access database (using OleDbCommandBuilder)
  • How do I clone a class in intellij?
  • React Native + Redux: What's the best and preferred navigation?
  • mapping between words and a group tuple to get frequency of words
  • How to give custom name to Sqoop output files
  • PHP in userdir not working
  • auth.provider is not set to 'password' when user signs-in with email and password
  • php is_file always return false
  • powershell Get-Counter -ComputerName parameter on Windows 7
  • How can I run DataNucleus Bytecode Enhancer from SBT?
  • In loopback documentation what does variable 'cb' stands for?
  • Group list of tuples by item
  • Invalid object name 'dbo.Item'
  • nonblocking BIO_do_connect blocked when there is no internet connected
  • Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
  • Query to find the duplicates between the name and number in table
  • Excel's Macro-Recorder usage
  • What and where is mdimport
  • zope_i18n_compile_mo_files doesn't work on a Zeo configuration
  • How do I get HTML corresponding to current DOM tree?
  • Installing Apache MyFaces 2 on WildFly 8.2.0
  • PHP buffered output depending on server setting?
  • Why does access(2) check for real and not effective UID?
  • Is it possible to access block's scope in method?
  • Checking free space on FTP server
  • Meteor helpers not available in Angular template
  • How to recover from a Spring Social ExpiredAuthorizationException
  • script to move all files from one location to another location
  • ILMerge & Keep Assembly Name
  • Symfony2: How to get request parameter
  • Large data - storage and query
  • Apache 2.4 - remove | delete | uninstall
  • WOWZA + RTMP + HTML5 Playback?
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • How can I remove ASP.NET Designer.cs files?
  • python draw pie shapes with colour filled
  • Is there any way to bind data to data.frame by some index?
  • How can i traverse a binary tree from right to left in java?