This is a mirror of official site: http://jasper-net.blogspot.com/

Self Contained Assembly

| Monday, November 14, 2011
What it Does?

         To see please download the Demo.zip extract and run.You will see a form with button , click  button chose the color and click ok. The form color will change to cool gradient. Actually its a gradient panel control which is created by GradientPanelFactory plugin present in PlugIns folder. The plugin  is loaded dynamically at runtime. The plugin in turn relies on Owf.Controls.A1Panel.dll  which contains this cool gradient panel control. But you will not see this dll any where with this application , not even in PlugIns folder. Then how it works? This missing dll is actually compressed in to zip file and added as embedded resource to plugin dll. And this missing dll is extracted by application at runtime from zip resource of plugin dll. So the plugin can be self contained and only single file irrespective of the number of dependency dlls. Read further to see why and how its done.

Read more: Codeproject
QR: SelfContainedAssembly.aspx

Posted via email from Jasper-net

0 comments: