Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to add the assemly to GAC

How to add the assemly to GAC

Scheduled Pinned Locked Moved C#
csharpdotnettutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sukanyavarma
    wrote on last edited by
    #1

    Hai all, I have created a Dll which i want to place it in GAC so that I can use it in another projects. I am new to dotnet. Please show me the way the assemblies are placed in GAC. SukanyaVarma

    A H 2 Replies Last reply
    0
    • S sukanyavarma

      Hai all, I have created a Dll which i want to place it in GAC so that I can use it in another projects. I am new to dotnet. Please show me the way the assemblies are placed in GAC. SukanyaVarma

      A Offline
      A Offline
      Andrew Kirillov
      wrote on last edited by
      #2

      Hello You need to use gacutil.exe for it.

      gacutil.exe /i <assembly_path>
      

      With best regards, Andrew Kirillov, MCP x 3 Prize winner, August 2005

      1 Reply Last reply
      0
      • S sukanyavarma

        Hai all, I have created a Dll which i want to place it in GAC so that I can use it in another projects. I am new to dotnet. Please show me the way the assemblies are placed in GAC. SukanyaVarma

        H Offline
        H Offline
        Heath Stewart
        wrote on last edited by
        #3

        The assembly must also be strong named (signed) and you must be an administrator to add strong named assemblies to the GAC because it is a trusted store (and is not subjected to stack walks when checking code-access security). For information about strong name assemblies, read http://msdn.microsoft.com/library/en-us/cpguide/html/cpconStrong-NamedAssemblies.asp[^] and be sure to follow the "See also" links at the bottom of the page as well. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Customer Product-lifecycle Experience Microsoft [My Articles] [My Blog]

        S 1 Reply Last reply
        0
        • H Heath Stewart

          The assembly must also be strong named (signed) and you must be an administrator to add strong named assemblies to the GAC because it is a trusted store (and is not subjected to stack walks when checking code-access security). For information about strong name assemblies, read http://msdn.microsoft.com/library/en-us/cpguide/html/cpconStrong-NamedAssemblies.asp[^] and be sure to follow the "See also" links at the bottom of the page as well. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Customer Product-lifecycle Experience Microsoft [My Articles] [My Blog]

          S Offline
          S Offline
          sukanyavarma
          wrote on last edited by
          #4

          Thank you Andrew Kirillov, Thank You Heath Stewart Thanks for your responses. With Regards SukanyaVarma sukanyavarma

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups