Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • What is assembly and strong named assemblies in .net

    • 0
    • 1
    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 329
    Comment on it

    Assembly is a fundamental unit in .net which is versionable and gets created after successful compilation and it has an extension of .dll or .exe.

    Strong naming an assembly is Basically a process of Private and Public Key Pair.

    In .Net there are 2 types of assemblies:

    1. Week named assemblies
    2. strong name assemblies

    Week name assembly are those which does not have Private and Public Key Pair.

    Ex.

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    
    namespace ConsoleApplication1
    {
        class Program
        {
            static void Main(string[] args)
            {
                Console.WriteLine("this is new line.");
            }
        }
    }
    

    In the above code we have used Console class, this Console class is present in System namespace and this System namespace is present in System assembly, and this System is basically a .net assembly which gets installed when install .net in our machine.

    When we install .net in our machine, two very important component gets installed one is the .net framework class library and the other one is run time environment which is nothing but the CLR. Within .net framework class library we have several class assembly which are present at a special location which is called GAC (Global Assembly Cache).

    Path for GAC is like :

    C:\Windows\assembly

    alt text alt text


    We use Assembly Version attribute to specify the Assembly Version. The default is 1.0.0.0. The

    version number of an assembly consists of the following 4 parts :

    1. Major Version
    2. Miner Version
    3. Build Version
    4. Revision Number


    An assembly consists of 4 parts:

    1. Simple textual name.
    2. Version number
    3. Culture information (Otherwise the assembly us language neutral)
    4. Public Key Token

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: