Unneeded references

  • Thread starter Thread starter Sheila Jones
  • Start date Start date
S

Sheila Jones

Hi,

Is there a way to detemine which references in a VB.Net project are no
longer required? The compiler doesn't seem to do this - it just copies all
the references to the assembly's manifest.

The only way I have found so far is to remove each reference in turn and
attempt a recompile. If it compiles OK, the reference was obviously
unneeded.

Thanks.
 
* Sheila Jones said:
Is there a way to detemine which references in a VB.Net project are no
longer required? The compiler doesn't seem to do this - it just copies all
the references to the assembly's manifest.

There is no direct way to do that. AFAIK, in .NET 2.0, only references
are added to the assembly's manifest if they are needed.
 
One way could be to remove the references one by one, compile and then check
for errors, no errors, then remove reference

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing
 
Is there a way to detemine which references in a VB.Net project are no
longer required? The compiler doesn't seem to do this - it just copies all

Although this doesn't help you now, In VS2005, there is an option in the
project property pages to list the unused refereces and a button to remove
them.


--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 
VS2005 Rocks !

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

Chris Dunaway said:
Is there a way to detemine which references in a VB.Net project are no
longer required? The compiler doesn't seem to do this - it just copies
all

Although this doesn't help you now, In VS2005, there is an option in the
project property pages to list the unused refereces and a button to remove
them.


--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 
Back
Top