Search code examples
build-processbuild-automationilmergesharpdevelop

Is it possible to run ILMerge at compile time within SharpDevelop?


I'd like to offer my .Net library (which I'm developing in the SharpDevelop IDE) as a single dll. I've been manually using ILMerge to merge my compiled library and all its reference libraries together, but would like this done automatically.

I'd ideally like to have this automatic merge happen from within SharpDevelop, without having to set up an external build script. Is this possible?


Solution

  • SharpDevelop uses MSBuild to compile your code so the simplest way would be to create a post build step that runs ILMerge with the correct parameters. You can create a post build step from the Project Options under the Build Events tab. Alternatively you can directly edit your project file in Notepad.