Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio References and versioning - how does it work?

Tags:

People also ask

How do I change the reference version in Visual Studio?

Open the project in Visual Studio. Right-click on the project's References folder and select Add Reference to open the Add Reference dialog box. Locate the new assembly version in the Add Reference dialog for each Infragistics assembly listed in your References folder.

What is references in Visual Studio?

A reference is essentially an entry in a project file that contains the information that Visual Studio needs to locate the component or the service. To add a reference, right click on the References or Dependencies node in Solution Explorer and choose Add Reference.

What is the difference between dependencies and references in Visual Studio?

They are basically no different, they are used to store and manage references.


We have several common libs. Ideally we want them all to use the latest version of a dll even if they have been compiled against an older different version (assume the latest version is backward compatible)

e.g we have:

Project dll
Common controls dll
Logging dll
Database access dll

Project and common controls reference v2 of database dll. Logging however references v1.

If different versions are referenced in different components how does VS pick which one to use?
Do we have to recompile v1 dll to use the latest database (v2) or can we get this to pick up automatically?
Is it possible to force a particular version to be used?

Thanks,

Alex