oracle - ODP.NET 11.2.04 and 12.1.0.2 Side by side -
oracle - ODP.NET 11.2.04 and 12.1.0.2 Side by side -
our product uses odp.net 11g(11.2.0.4 specific). want upgrade oracle 12c still want back upwards previous version also(version odp.net 11g). have couple of assemblies uses oracle.dataaccess.dll. while referencing these projects in visual studio, setting "specific version" set false.
on developer machine, when oracle client 12c installed, latest oracle.dataaccess.dll files picked up. because of publisher policy gets installed oracle 12c client. verified path of oracle.dataaccess,dll in visual studio respective projects , shows path of odp.net 12c client. works seamlessly without changes code.
now have problem getting work on our build machine. build machine has build 11g version , 12c versions of our product simultaneously.
we have oracle client 11.2.0.4 installed on build machine. had installed oracle client 12c on build machine. when checked references in visual studio, oracle.dataaccess.dll path updated pick odp.net 12c.
following plan deal issue. when want build 11g version
remove 12c related policy file , oracle.dataaccess dll gac. remove oracleclient 12c path path variable. path contains oracleclient 11g path. removing 12c path leaves path variable oracle client 11 path. reverse(uninstall 11g related dlls gac , install 12c dlls , add together 12c path path environment variable)but after next steps 1,2 building 11g version, still see references in visual studio point 12c version. missing thing or on wrong track?
setting "specific version" false not sufficient.
in *.csproj, resp. *.vbproj edit reference odp.net this:
<reference include="oracle.dataaccess"> <specificversion>false</specificversion> <private>false</private> </reference>
don't forget remove hintpath
element
oracle visual-studio-2012 oracle11g odp.net
Comments
Post a Comment