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. How to Remove a DLL Reference

How to Remove a DLL Reference

Scheduled Pinned Locked Moved .NET (Core and Framework)
visual-studioquestioncsharpcomtutorial
7 Posts 2 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.
  • R Offline
    R Offline
    rgondzur
    wrote on last edited by
    #1

    I have a C# project that references an ActiveX DLL. I have registered the DLL using the VS IDE. I want to make some changes to the DLL and consequently register the new version with the IDE. 1. How do I remove the existing reference so I can register the new DLL? 2. Where do I see the registered files for a given project? Thanks, Rg

    C 1 Reply Last reply
    0
    • R rgondzur

      I have a C# project that references an ActiveX DLL. I have registered the DLL using the VS IDE. I want to make some changes to the DLL and consequently register the new version with the IDE. 1. How do I remove the existing reference so I can register the new DLL? 2. Where do I see the registered files for a given project? Thanks, Rg

      C Offline
      C Offline
      cvp77
      wrote on last edited by
      #2

      Could you brief us how you registered that Dll so that i can get give you the correct solution. Regards, CVP

      R 1 Reply Last reply
      0
      • C cvp77

        Could you brief us how you registered that Dll so that i can get give you the correct solution. Regards, CVP

        R Offline
        R Offline
        rgondzur
        wrote on last edited by
        #3

        I built the DLL (Message.dll) using VB6 as an ActiveX DLL. In VS 2003: I used the Add Reference utility, COM tab to select the DLL and add it to my project. Intellisense shows me the single function I created in the DLL. I then added functions to the DLL and I want to reference them in my C# code. The IDE tells me I need to remove the reference to the old DLL before I can use the new one. I see the Interop.Message.dll in the bin-Debug directory of my project. I assume something needs to be removed/unregistered from the project before I can reference the DLL but I don't see how to perform the task.

        R C 2 Replies Last reply
        0
        • R rgondzur

          I built the DLL (Message.dll) using VB6 as an ActiveX DLL. In VS 2003: I used the Add Reference utility, COM tab to select the DLL and add it to my project. Intellisense shows me the single function I created in the DLL. I then added functions to the DLL and I want to reference them in my C# code. The IDE tells me I need to remove the reference to the old DLL before I can use the new one. I see the Interop.Message.dll in the bin-Debug directory of my project. I assume something needs to be removed/unregistered from the project before I can reference the DLL but I don't see how to perform the task.

          R Offline
          R Offline
          rgondzur
          wrote on last edited by
          #4

          I found the reference in the solution explorer and removed it there.

          1 Reply Last reply
          0
          • R rgondzur

            I built the DLL (Message.dll) using VB6 as an ActiveX DLL. In VS 2003: I used the Add Reference utility, COM tab to select the DLL and add it to my project. Intellisense shows me the single function I created in the DLL. I then added functions to the DLL and I want to reference them in my C# code. The IDE tells me I need to remove the reference to the old DLL before I can use the new one. I see the Interop.Message.dll in the bin-Debug directory of my project. I assume something needs to be removed/unregistered from the project before I can reference the DLL but I don't see how to perform the task.

            C Offline
            C Offline
            cvp77
            wrote on last edited by
            #5

            since your Dll not resides in GAC The solution is so simple In your project 1)Go to Add reference tab 2) then remove the dll who have added before 3.apply 4.Add the new dll once again 5.Now check that ur newly added functions will be there Hint:whenever u change the functions or methods in the referring Dll (if u want that changes have to be get reflected in ur application) then remove the reference and add the reference once agian Good Luck!

            R 1 Reply Last reply
            0
            • C cvp77

              since your Dll not resides in GAC The solution is so simple In your project 1)Go to Add reference tab 2) then remove the dll who have added before 3.apply 4.Add the new dll once again 5.Now check that ur newly added functions will be there Hint:whenever u change the functions or methods in the referring Dll (if u want that changes have to be get reflected in ur application) then remove the reference and add the reference once agian Good Luck!

              R Offline
              R Offline
              rgondzur
              wrote on last edited by
              #6

              Thanks for the reply. The problem is that the only place the dll is displayed is on the COM tab. I don't see how you remove a reference using that dialog box. I used the Browse window to find the interop assembly and deleted the file thru that dialog. But the project still builds OK so that did not remove the reference. Your statment 2) says "remove the dll". Which tab are you referring to? Where exactly am I viewing the dll to remove it? I have since found the references in the solution explorer. I can remove the dll reference there. But for my understanding, I would like to duplicate your method.

              C 1 Reply Last reply
              0
              • R rgondzur

                Thanks for the reply. The problem is that the only place the dll is displayed is on the COM tab. I don't see how you remove a reference using that dialog box. I used the Browse window to find the interop assembly and deleted the file thru that dialog. But the project still builds OK so that did not remove the reference. Your statment 2) says "remove the dll". Which tab are you referring to? Where exactly am I viewing the dll to remove it? I have since found the references in the solution explorer. I can remove the dll reference there. But for my understanding, I would like to duplicate your method.

                C Offline
                C Offline
                cvp77
                wrote on last edited by
                #7

                1)-Click Reference 2)Select the dll u have added 3)Rt click and Remove it Regards, CVP

                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