How to Remove a DLL Reference
-
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
-
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
-
Could you brief us how you registered that Dll so that i can get give you the correct solution. Regards, CVP
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.
-
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.
-
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.
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!
-
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!
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.
-
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.