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. Shared Assembly

Shared Assembly

Scheduled Pinned Locked Moved C#
questiondotnethelp
9 Posts 4 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.
  • N Offline
    N Offline
    NetRocker
    wrote on last edited by
    #1

    How do I add a reference to an assembly that is in the GAC (C:\Windows\Assembly) folder? The problem is that I use a third party dll that is register in GAC but not available elsewhere in my hard drive. So I have to use the copy in the GAC folder. Any suggestions would be appreciated.:confused: Thanks, Sandeep.

    T L 2 Replies Last reply
    0
    • N NetRocker

      How do I add a reference to an assembly that is in the GAC (C:\Windows\Assembly) folder? The problem is that I use a third party dll that is register in GAC but not available elsewhere in my hard drive. So I have to use the copy in the GAC folder. Any suggestions would be appreciated.:confused: Thanks, Sandeep.

      T Offline
      T Offline
      Turtle Hand
      wrote on last edited by
      #2

      If it's registered in the GAC, I believe you have to use that assembly. Trying to use a non-GAC registered copy caused an error.

      N 1 Reply Last reply
      0
      • T Turtle Hand

        If it's registered in the GAC, I believe you have to use that assembly. Trying to use a non-GAC registered copy caused an error.

        N Offline
        N Offline
        NetRocker
        wrote on last edited by
        #3

        Yes but the problem is how to add the reference to that assembly??

        C 1 Reply Last reply
        0
        • N NetRocker

          Yes but the problem is how to add the reference to that assembly??

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          In Visual Studio you mean? Right click the references folder in the Solution. Click Add Reference... in the .NET* Tab you will find the assembly. * I think... I don't have visual studio open right now.


          My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious

          N 1 Reply Last reply
          0
          • C Colin Angus Mackay

            In Visual Studio you mean? Right click the references folder in the Solution. Click Add Reference... in the .NET* Tab you will find the assembly. * I think... I don't have visual studio open right now.


            My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious

            N Offline
            N Offline
            NetRocker
            wrote on last edited by
            #5

            Yes, but the assembly is in GAC and I cannot browse to the dlls in GAC folder (C:\windows\assembly). I do not have any copy of the dll in my drive..:doh: Hope you understood my problem.

            C 1 Reply Last reply
            0
            • N NetRocker

              Yes, but the assembly is in GAC and I cannot browse to the dlls in GAC folder (C:\windows\assembly). I do not have any copy of the dll in my drive..:doh: Hope you understood my problem.

              C Offline
              C Offline
              Colin Angus Mackay
              wrote on last edited by
              #6

              [EDIT] Sorry... My bad. It seems I am mistaken and this is not the answer to your question. [/EDIT]


              My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious -- modified at 17:01 Monday 7th November, 2005

              N 1 Reply Last reply
              0
              • C Colin Angus Mackay

                [EDIT] Sorry... My bad. It seems I am mistaken and this is not the answer to your question. [/EDIT]


                My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious -- modified at 17:01 Monday 7th November, 2005

                N Offline
                N Offline
                NetRocker
                wrote on last edited by
                #7

                I have an assembly in the GAC folder which I cannot see in Visual Studio .Net tab for Add Reference. If you observe, the path of the assemblies in the .Net tab will never be the GAC folder. For system assemblies, it is C:\Windows\Micorsoft.Net\Framework\v1.4.3222\System.dll. That means there are two copies. One is a copy of the assembly in windows directory which is being referenced and the other is one in the GAC folder. Now I do not have such copy in my drive other than the one in the GAC folder. All i have is the dll in the GAC folder. Is there an alternative or a procedure that can show all the assemblies in .Net tab from the GAC folder? I have a third party dll that is installed in GAC and i need it for my application. I do not have access to the dlls directly at all.

                T 1 Reply Last reply
                0
                • N NetRocker

                  I have an assembly in the GAC folder which I cannot see in Visual Studio .Net tab for Add Reference. If you observe, the path of the assemblies in the .Net tab will never be the GAC folder. For system assemblies, it is C:\Windows\Micorsoft.Net\Framework\v1.4.3222\System.dll. That means there are two copies. One is a copy of the assembly in windows directory which is being referenced and the other is one in the GAC folder. Now I do not have such copy in my drive other than the one in the GAC folder. All i have is the dll in the GAC folder. Is there an alternative or a procedure that can show all the assemblies in .Net tab from the GAC folder? I have a third party dll that is installed in GAC and i need it for my application. I do not have access to the dlls directly at all.

                  T Offline
                  T Offline
                  Turtle Hand
                  wrote on last edited by
                  #8

                  gacutil /l will tell you what is registered in the GAC. You can also reinstall assemblies using this utility.

                  1 Reply Last reply
                  0
                  • N NetRocker

                    How do I add a reference to an assembly that is in the GAC (C:\Windows\Assembly) folder? The problem is that I use a third party dll that is register in GAC but not available elsewhere in my hard drive. So I have to use the copy in the GAC folder. Any suggestions would be appreciated.:confused: Thanks, Sandeep.

                    L Offline
                    L Offline
                    leppie
                    wrote on last edited by
                    #9

                    I had a similar problem with NUnit I think. After looking the responses, I'm not sure if you can 'copy' a dll out of the GAC, from a security point of view I would say no, but I could be wrong. xacc.ide-0.1-rc1 released! Download and screenshots

                    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