Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted
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.
  • Leaders
Posted
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.
[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...