Click here to Skip to main content
12,623,930 members (29,191 online)
Click here to Skip to main content

Tagged as

Stats

25.4K views
1.2K downloads
40 bookmarked
Posted

Self Contained Assembly

, 13 Nov 2011 CPOL
Shows how deployment of dynamically loaded assembly can be simplified by reducing the assembly to single self contained file.
Demo
AbstractPanelFactory.dll
AssemblyLoader.dll
DemoClientApp.exe
PlugIns
GradientPanelFactory.dll
SelfContainedAssembly
AbstractPanelFactory
bin
Release
AbstractPanelFactory.dll
AbstractPanelFactory.pdb
Properties
AssemblyLoader
bin
Release
AssemblyLoader.dll
AssemblyLoader.pdb
Properties
DemoClientApp
bin
Release
AbstractPanelFactory.dll
AbstractPanelFactory.pdb
AssemblyLoader.dll
AssemblyLoader.pdb
DemoClientApp.exe
DemoClientApp.pdb
DemoClientApp.vshost.exe
DemoClientApp.vshost.exe.manifest
PlugIns
Properties
GradientPanelFactory
bin
Release
GradientPanelFactory.dll
GradientPanelFactory.pdb
DependancyAssemblies.zip
Owf.Controls.A1Panel.dll
Properties
SelfContainedAssembly.suo
namespace DemoClientApp
{
    partial class MainForm
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.colorDialog1 = new System.Windows.Forms.ColorDialog();
            this.btnGetPanel = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // btnGetPanel
            // 
            this.btnGetPanel.Location = new System.Drawing.Point(3, 3);
            this.btnGetPanel.Name = "btnGetPanel";
            this.btnGetPanel.Size = new System.Drawing.Size(64, 23);
            this.btnGetPanel.TabIndex = 0;
            this.btnGetPanel.Text = "Get Panel";
            this.btnGetPanel.UseVisualStyleBackColor = true;
            this.btnGetPanel.Click += new System.EventHandler(this.btnGetPanel_Click);
            // 
            // MainForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(284, 262);
            this.Controls.Add(this.btnGetPanel);
            this.Name = "MainForm";
            this.Text = "Self contained assembly";
            this.Load += new System.EventHandler(this.MainForm_Load);
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.ColorDialog colorDialog1;
        private System.Windows.Forms.Button btnGetPanel;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Prafulla Hunde
Software Developer Honeywell Automation India Ltd.
India India
I am software developer with over 8.5 years exp.I have been working in industrial automation domain using MS technology.I have primarily worked on winform/WPF desktop applications.
using C# with .net framework 2.0,3.5& 4.0. I am interested and trying to get comfortable with WPF , Linq and new features..

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161128.1 | Last Updated 13 Nov 2011
Article Copyright 2011 by Prafulla Hunde
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid