简体   繁体   中英

parsing json in C# with json.net requires the json.net .dll?

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM