Jay1b Posted April 1, 2005 Posted April 1, 2005 My first VB.NET program as you can imagine used vast amounts of VB code and controls, such as FlexGrids.... I've just spend a couple of weeks making the program more '.NET'. I've replaced the flexgrids with listviews, put the global variables into classes. Rewritten the modules into Classes. However i've noticed that references to things like Interop.MSFlexGridWizard still exist. These are redundant now and i would like to remove them. The purpose of this thread is to ask if somebody could please advise me on how i can find out what references are still being referenced, and which references are not. Also on how i can remove them, i thought i removed a few obvious ones, but when i reloaded the app, they reappeared. Thanks for any help. Quote
Mister E Posted April 1, 2005 Posted April 1, 2005 Delete a reference in Visual Studio then try to recompile. If it doesn't compile, a dependency still exists. Do this one at a time for each reference that you think is no longer needed. Make sure you don't delete multiple references or you won't know which one the dependency was in. When doing this, make sure you compile the entire solution so as to recompile all files in it. Quote
Jay1b Posted April 1, 2005 Author Posted April 1, 2005 Thanks, but i was hoping for some sort of tool. 30 odd references is quite a few :( Quote
Leaders snarfblam Posted April 1, 2005 Leaders Posted April 1, 2005 Even with 30 references it shouldnt be too difficult... just expand references in the solution explorer, click what you want to remove, hit the delete key, repeat as necessary. You should be done and on your way in a minute. Good luck finding a .Net Unused Reference Deleter program. Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.