|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Can't get rid of referencesI have converted a vb6 dll into vb.net and gone through all of the code and
changed it to .net format. I have attempted to get rid of all Interop code so that the dll will compile with only .net classes. I still have Interop assemblies referenced and I do not know how to locate the code that is preventing me from removing them from my application. Any assistance is truly apprreciated. -- Charlie Jursch Patotech Software, Inc. Danville, CA Code preventing you from removing them? Huh?
What do you mean you "can't" get rid of the references? You just select the reference and remove it. Show quoteHide quote "Charlie J" <Charl***@discussions.microsoft.com> wrote in message news:C390DB15-EB21-4B0A-B345-0935C988203C@microsoft.com... >I have converted a vb6 dll into vb.net and gone through all of the code and > changed it to .net format. I have attempted to get rid of all Interop > code > so that the dll will compile with only .net classes. I still have Interop > assemblies referenced and I do not know how to locate the code that is > preventing me from removing them from my application. Any assistance is > truly apprreciated. > > -- > Charlie Jursch > Patotech Software, Inc. > Danville, CA When I click on the reference and click the Remove menu item nothing happens.
The reference stays there. I am assuming that the reason I cannot get rid of the reference is that there is code that still requires it. If this is not true then why would the references not be removable? -- Show quoteHide quoteCharlie Jursch Patotech Software, Inc. Danville, CA "Marina Levit [MVP]" wrote: > Code preventing you from removing them? Huh? > > What do you mean you "can't" get rid of the references? You just select the > reference and remove it. > > "Charlie J" <Charl***@discussions.microsoft.com> wrote in message > news:C390DB15-EB21-4B0A-B345-0935C988203C@microsoft.com... > >I have converted a vb6 dll into vb.net and gone through all of the code and > > changed it to .net format. I have attempted to get rid of all Interop > > code > > so that the dll will compile with only .net classes. I still have Interop > > assemblies referenced and I do not know how to locate the code that is > > preventing me from removing them from my application. Any assistance is > > truly apprreciated. > > > > -- > > Charlie Jursch > > Patotech Software, Inc. > > Danville, CA > > > No, the IDE doesn't lock references just because code somewhere requires it.
It will let you remove the reference, and then your code just won't compile. I haven't worked too much with the properties window in 2005 as far as references. You can follow Cor's instructions on how to see the list of references in Solution Explorer (which is the way I do it as well). Then you can select the reference and hit the Delete key, or right click on it and delete it that way. Show quoteHide quote "Charlie J" <Charl***@discussions.microsoft.com> wrote in message news:E334D7C8-BEEA-4731-8679-7EED001F77F1@microsoft.com... > When I click on the reference and click the Remove menu item nothing > happens. > The reference stays there. I am assuming that the reason I cannot get rid > of the reference is that there is code that still requires it. If this is > not true then why would the references not be removable? > -- > Charlie Jursch > Patotech Software, Inc. > Danville, CA > > > "Marina Levit [MVP]" wrote: > >> Code preventing you from removing them? Huh? >> >> What do you mean you "can't" get rid of the references? You just select >> the >> reference and remove it. >> >> "Charlie J" <Charl***@discussions.microsoft.com> wrote in message >> news:C390DB15-EB21-4B0A-B345-0935C988203C@microsoft.com... >> >I have converted a vb6 dll into vb.net and gone through all of the code >> >and >> > changed it to .net format. I have attempted to get rid of all Interop >> > code >> > so that the dll will compile with only .net classes. I still have >> > Interop >> > assemblies referenced and I do not know how to locate the code that is >> > preventing me from removing them from my application. Any assistance >> > is >> > truly apprreciated. >> > >> > -- >> > Charlie Jursch >> > Patotech Software, Inc. >> > Danville, CA >> >> >> Charlie,
Have a look in the Solution Explorer (mostly at the right side of your screen docked), click on tab ot that Show All files and click than at references, that is the place where you see them. I hope this helps, Cor Show quoteHide quote "Charlie J" <Charl***@discussions.microsoft.com> schreef in bericht news:C390DB15-EB21-4B0A-B345-0935C988203C@microsoft.com... >I have converted a vb6 dll into vb.net and gone through all of the code and > changed it to .net format. I have attempted to get rid of all Interop > code > so that the dll will compile with only .net classes. I still have Interop > assemblies referenced and I do not know how to locate the code that is > preventing me from removing them from my application. Any assistance is > truly apprreciated. > > -- > Charlie Jursch > Patotech Software, Inc. > Danville, CA "Charlie J" <Charl***@discussions.microsoft.com> schrieb: If the tips given by the others do not work, backup the project file (VBPROJ >I have converted a vb6 dll into vb.net and gone through all of the code and > changed it to .net format. I have attempted to get rid of all Interop > code > so that the dll will compile with only .net classes. I still have Interop > assemblies referenced and I do not know how to locate the code that is > preventing me from removing them from my application. Any assistance is > truly apprreciated. file), open it in notepad and remove the reference there. When opening the project afterwards you may have to fix the lines which are relying on the reference. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
Trying to "display" control characters in a text box
Getting the selected item from a listview Dummy question Getting DataGrid row X, Y position and Changing Column Width (2003) WMI script to get Win32_Product Where to do the Loading tasks for application ? Foreign Language Names Using PLink interactively as a Telnet process with VB.Net 2003 Generate a text/binary file during installation What/How do I access installed Drivers in .NET 2.0 ? |
|||||||||||||||||||||||