Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove Unused References

Status
Not open for further replies.

PGO01

Programmer
Jan 8, 2008
156
GB
Is there a tool to remove (or flag) unused references in a project? Like there is in VB .NET - in the project properties.

If not, any tips on how to create my own add-in to do it? I'm guessing reflection...?
 
It's not entirely automatic, but Resharper will turn unused 'using' statements gray, indicating they aren't being used.

Excellent product, btw. Wish it were cheaper.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
If your using VS.NET 2008 it is built in.

I don't rememebr exactly how to do it but I do recall a demonstration at the launch event where the speaker specifically pointed this out, unfortunately I was half asleep at the time :)

Smeat
 
VS.net 2008 will tell you at compile/debug which references (if any) are declared but never used along with which file and line number they are on.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top