How not to refer to a specific version of an assembly?

I have a Visual Studio 2010 project, and I reference the Oracle.DataAccess.dll assembly, which points to the local version.

I explicitly set the "Specific Version" option to false, but when the application was built, I checked the build of the application and it has a specific link to

Oracle.DataAccess, Version = 2.112.3.0, Culture = Neutral, PublicKeyToken = 89b483f429c47342

How not to refer to a specific version of an assembly?

I would like to rely on the version of the version available in the bin folder.

Nowadays, obviously, depends on where the application is built. If I create a project on a machine with a different version of Oracle Client, then another version of Oracle.DataAccess will be used in the main application.

You should not rely on where the application is actually built. It should not refer to any particular version.

+4
source share
4 answers

A specific version is a compile-time check that you are actually creating against the version that you really have in the link to the project / file.

Whichever version you compile falls into compiled assembly metadata as a reference assembly. This includes the build version number as it is part of the build identifier for the CLR. There is no way to have a link to another assembly without including the version in the output assembly.

, , true, , , . , .

, , , . , Oracle , , , . .

+6

, .dll , . .dll, , . . this

0

SpecificVersion false, , . , .

. , , . - , . , SpecificVersion = false CopyLocal = true . . , , . , , .

0

Oracle.DataAccess . Oracle.DataAccess

verison 1.x, 2.0 4.0, . : Oracle Data Access Components (ODAC) Windows

, Oracle Client . ODP.NET Version 1.x Oracle 11.1. 1.x 2.0 100% ( ). VS , . 2,0. ​​ 2.x.x.x, 2.102.2.20, . . 1.x, ​​ 1.x.x.x. 4.0 .

In the application I'm developing, I provide two different Setup.exe files. The client must choose the correct setting based on its installation of Oracle Client.

You can find information about Furter here: ODP.NET Frequently Asked Questions

My installed Oracle.DataAccess enter image description here

0
source

All Articles