Can we use ILRepack, the Open Source ILMerge clone to merge the driver and bson dll?

313 views
Skip to first unread message

Justin Dearing

unread,
Dec 29, 2012, 5:57:32 PM12/29/12
to mongodb...@googlegroups.com
Hey,

I know one of the original design consideration of the mongo driver was that there was a separate bson assembly independent of the driver. I think this is still a very good idea. However, most people would be happy with a single DLL.

I've proposed to Robert in the past we use ilmerge. However, ILMerge cannot be freely distributed so it becomes a giant pain from a compliance perspective. Thankfully there is now an open source alternative that works with mono called ILRepack. We can freely include the executable in the github repo, so anyone can easily rebuild the merged DLL with a Ctrl+Shift+B.

Here is exactly what I am proposing:
  1. The new DLL be called Mongo.dll
  2. The MSI and ZIP file include Mongo.Bson.dll, Mongo.Driver.dll and Mongo.dll
  3. ILrepack.exe be included via the nuget package.
  4. Rather than a postbuild step, we add a proper msbuild task through a ILRepack-Build which I forked from an abandoned google code project that integrated wil ILMerge.
If Robert and Craig agree, I'll open a bug and work on a patch.

Justin
Reply all
Reply to author
Forward
0 new messages