Results 1 to 2 of 2

Thread: Assembly Creation

  1. #1

    Thread Starter
    Fanatic Member karthikeyan's Avatar
    Join Date
    Oct 2005
    Location
    inside .net
    Posts
    919

    Assembly Creation

    hi i am working .net 2005.

    i would like to create one assembly and have to install it in GAC.

    for example this is a small function:


    public class Class1
    {
    public int add(int value1, int value2)
    {
    return value1 + value2;
    }
    }
    if i compile this i will get dll.then i dont know the further steps to create keypair and versioning and install it in to GAC.
    please note down am working in .nt2005.
    please show me some god links which have ellobrate procedures please
    Loving dotnet

  2. #2
    Banned
    Join Date
    May 2007
    Posts
    3

    Re: Assembly Creation

    Hi,

    A shared assembly is one that is used by multiple applications on the machine. A shared assembly must have a name that is globally unique. The .NET Framework supports these naming requirements through a technique called strong names.

    Shared assemblies must have a "strong name" consisting of the name of the assembly, the version, a 64 bit hash of a public key (called a ´token´) and the culture. To create a strong name for an assembly (that is, to generate a public/private key pair), you'll have to use another utility called sn.exe.")

    In this article, we will create a Visual Basic 2005 component called myGAC. We will also create a key file named mykeys.key. We will sign our component with this key file and place it in Global Assembly Cache. To create a Component we have to create a Class Library project by using Visual Studio .NET.

    Edit by admin: links removed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width