473,395 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Unneeded references

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.
Nov 20 '05 #1
4 1243
* Sheila Jones <sh****************@btopenworld.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
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

"Sheila Jones" <sh****************@btopenworld.com> wrote in message
news:uL****************@tk2msftngp13.phx.gbl...
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.

Nov 20 '05 #3
> 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.
Nov 20 '05 #4
VS2005 Rocks !

--

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

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

"Chris Dunaway" <"dunawayc[[at]_lunchmeat_sbcglobal[dot]]net"> wrote in
message news:4a******************************@40tude.net.. .
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.

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Tom | last post by:
The motivation for references seems clear: stop people from using nasty pointers when all they really want is a reference to an object. But C++ references are so inadequate that I'm still using...
22
by: xmp333 | last post by:
Hi All, I am trying to hide my JavaScript source. The method I chose was to keep all the important source in a password protected folder, and then use a SRC="folder/script.js" to include it...
33
by: JKop | last post by:
I understand variables/objects and pointer variables perfectly: int X = 5; int* pX = &X; *pX = 4; int** ppX = &pX:
2
by: S. van Beek | last post by:
Dear reader, For removing a reference in the VBA reference form I receive from Doug Steele the following code: ........... References.Remove refCurr
2
by: Kenny M. | last post by:
hi I have a WebForm1 with a button to navigate using Response.Redirect ("myPage2",true) and I have notice that the Webform1 makes a complete PostBack before leave, and that is making my app more...
11
by: codebloatation | last post by:
I know how to use references but i DO not get WHY they exist other than to add to the language. Are they actually needed for anything?
14
by: el_sid | last post by:
Our developers have experienced a problem with updating Web References in Visual Studio.NET 2003. Normally, when a web service class (.asmx) is created, updating the Web Reference will...
30
by: jeremygetsmail | last post by:
I've got an adp (Metrix.adp) with a reference to another adp (InteractSQL.adp). InteractSQL sits on a server, and is refered to by all of the clients (Metrix), which sit on the client machines...
9
by: igor.kulkin | last post by:
References is a relatively basic feature of C++ language. It might be a good thing to think of references as aliases to the variables. However it's good to think of references this way when you...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.