Visual Studio References#
Another source of getting the wrong version of your code (see my post on Various Caches) can be because your references (real ones, not Project References) in Visual Studio are wrong, so make sure they point to the correct location of the dll. Even if you have set them right before, Visual Studio can still make them go wrong sometimes. And even then, I have noticed that the compiler may use another location than the one you are referencing. Needless to say this can be very frustrating and I haven't found a solution for this yet, sadly. The biggest problem with references is the "copy local" flag (in the reference's properties), which makes a copy of the referenced dll in the bin folder of your project. This makes it easy to run your project because you don't need to register your dll's in the GAC or place them in your DEVPATH. Of course, the drawback is that if they aren’t correctly updated to match the current version (that is, if your reference is wrong), you will be working with an older copy.

If it's in any way possible - and logical within your project - use Project References. I've never seen them go bad.
Blog | Programming | .NET | Quirks | VS.NET
Thursday, March 01, 2007 6:41:57 PM (Romance Standard Time, UTC+01:00)
yeugccbz http://zgtqxnew.com rdddlyvw qnevpqcd [URL=http://ouwyxmoe.com]zjoyfyaq[/URL] <a href="http://mereedoi.com">bwctccep</a>
Comments are closed.
All content © 2012, Jelle Druyts
On this page

Recent Photos
www.flickr.com
This is a Flickr badge showing public photos from Jelle Druyts. Make your own badge here.
Advertising
Top Picks
Statistics
Total Posts: 350
This Year: 0
This Month: 0
This Week: 0
Comments: 530
Archives
Sitemap
Disclaimer
This is my personal website, not my boss', not my mother's, and certainly not the pope's. My personal opinions may be irrelevant, inaccurate, boring or even plain wrong, I'm sorry if that makes you feel uncomfortable. But then again, you don't have to read them, I just hope you'll find something interesting here now and then. I'll certainly do my best. But if you don't like it, go read the pope's blog. I'm sure it's fascinating.

Powered by:
newtelligence dasBlog 2.0.7226.0

Sign In