开发者

How to auto switch the rererence between different Oracle versions

开发者 https://www.devze.com 2022-12-20 05:05 出处:网络
I\'m using a C# project that is linked to the OracleDataAccess.dll - V9 or V10, but only one of them at a time. My development machine has both installations. On the deployment machines only one of th

I'm using a C# project that is linked to the OracleDataAccess.dll - V9 or V10, but only one of them at a time. My development machine has both installations. On the deployment machines only one of them is available. F开发者_Go百科or this reason, I have to switch the reference betwenn V9 and V10 in my project dependent on the deployment machine.

Is it possible to automate this switching process? (May be by using #defines, pre-build commands, or alternate configuration settings) The only alternative I know is to use two different project files.


I didn't understand if you build your product on the deployment machine but if not my suggestion is to detect the version of the OracleDataAccess.dll at install time and create an appconfig that contains the appropriate version using the assemblyBinding element.

0

精彩评论

暂无评论...
验证码 换一张
取 消