1

I have a simple c# library (myLib.dll) that can be registered to applications. It can be used as a plug-in. Now i would like to use the json.net library from Newton King, but i do not want to have 2 .dll that i have to send around.

Is there a way to use json.net and somehow embed the .dll into myLib.dll that in the end i have only my .dll?

Edit: to clerify: Is it allowed to merge the jsonNET.dll with my own myLib.dll so that only myLib.dll will be visible as a file?

ok it has the MIT License: http://json.codeplex.com/license

1

2 Answers 2

3

You can merge the libraries together using ilmerge.

http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx

Make sure to carefully read the licence of any libraries you are merging in, as it may affect the distribution rules for your library. Also any application that uses your library will also have access to any merged libraries.

Sign up to request clarification or add additional context in comments.

Comments

3

You can achieve this remarkably easily using Netz, a .net NET Executables Compressor & Packer.

Finally, as a few have already mentioned, ILMerge may be another option to consider, albeit somewhat more involved.

1 Comment

Hm, .Netz claims to be open source, but it isn't. "You can use .NETZ out of the box free of charge and without any reference to its origin or author. .NETZ is an open source tool. You can modify its source code to fit your own needs, but you are not allowed to distribute your changes, or sell .NETZ modified versions."

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.