LinqPad single exe
Options
Hi Joe,
Is it possible for you to share how you package all LinqPad assemblies into a single executable?
Thanks
Is it possible for you to share how you package all LinqPad assemblies into a single executable?
Thanks
Comments
-
You can do this by including the assemblies as embedded resources and loading them on demand via the AppDomain's AssemblyResolve event. Look at the last code listing on this page:
http://www.albahari.com/nutshell/cs4ch17.aspx
You can also compress the assemblies to save space, with System.IO.Compression.DeflateStream