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. .NET (Core and Framework)
  4. Install assembly in the GAC

Install assembly in the GAC

Scheduled Pinned Locked Moved .NET (Core and Framework)
dotnettutorialquestionworkspace
3 Posts 2 Posters 2 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.
  • P Offline
    P Offline
    Patrick Lassalle
    wrote on last edited by
    #1

    I am creating a setup project and I would like to install some assembly files into the Global Assembly Cache (GAC). How to indicate that in the setup project?

    J 1 Reply Last reply
    0
    • P Patrick Lassalle

      I am creating a setup project and I would like to install some assembly files into the Global Assembly Cache (GAC). How to indicate that in the setup project?

      J Offline
      J Offline
      J Dunlap
      wrote on last edited by
      #2

      It depends on the setup program. But if it supports custom actions, then you can do

      "gacutilpath\gacutil.exe" /i "assemblypath\assemblyname.dll"

      where gacutil path is the path to gacutil.exe and assemblypath is the path to the assembly.

      "Do unto others as you would have them do unto you." - Jesus
      "An eye for an eye only makes the whole world blind." - Mahatma Gandhi

      P 1 Reply Last reply
      0
      • J J Dunlap

        It depends on the setup program. But if it supports custom actions, then you can do

        "gacutilpath\gacutil.exe" /i "assemblypath\assemblyname.dll"

        where gacutil path is the path to gacutil.exe and assemblypath is the path to the assembly.

        "Do unto others as you would have them do unto you." - Jesus
        "An eye for an eye only makes the whole world blind." - Mahatma Gandhi

        P Offline
        P Offline
        Patrick Lassalle
        wrote on last edited by
        #3

        I have finally discovered that the Deployment project in Visual Studio .NET offers a GAC folder. I have just, when creating my deployment project, to place my assemblies in this folder. And now, I have another question: I would like that the setup program make the assemblies appear in the Visual Studio .NET "Customize Toolbox" dialog box. How to do that?

        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