Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Best way to add reference to Oracle.DataAcces.Client in Visual Studio projects

Niels JespersenFeb 5 2015 — edited Feb 9 2015

Hello

We have a number of Visual Studio Projects (c#) using ODP.NET. Often ODP.NET is not installed in the same location on the development machine and where the runtime executable will eventually live.

What is the best way to add the reference to Oracle.DataAccess.Client to the project. Som projects just add the dll from where it happens to be installed on the development machine. It will be read from GAC at runtime anyway, I believe.

Other projects copy the dll to a folder inside the project and add it from there. This works as well.

Others add the one in the GAC (from Assemblies, Extensions in the add ref dialog), but it is not always available there.

What is the best way to do it ?

Does it matter at all, as long as the same (or higher) version is installed on the machine where the executable will run?

What does really happen when you add the reference, does it only read metadata from the assembly when adding the ref, or is there more going on?

Regards Niels Jespersen

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 8 2015
Added on Feb 5 2015
2 comments
2,064 views