在Visual Studio-ASP.NET中替换引用时出现问题 [英] Problem replacing a reference in Visual Studio-ASP.NET

查看:81
本文介绍了在Visual Studio-ASP.NET中替换引用时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

启动项目时,我正在ASP.NET中开发应用程序,添加一个Oracle参考.到目前为止,DataAccess版本2.112.3.0到目前为止还不错,问题是当我尝试用另一个版本2.112.4.0替换该dll时,但是我在删除引用和添加新版本时付出了很多,我仍然添加了我添加的第一个相同的路径和相同的版本,它们可以帮助我如何正确删除它,替换该版本的唯一方法是在已经发布该应用程序时直接在bin文件夹中对其进行更改.
问候.

I am developing an application in ASP.NET when I start the project add an Oracle reference. DataAccess version 2.112.3.0 so far so good, the problem is when I try to replace that dll with another version 2.112.4.0, however much I give in removing reference and adding the new one, I still add the first one I add with the same path and the same version, they could help me how to remove it properly, the only way to replace the version is to change it directly in the bin folder when I already publish the application.
Greetings.

推荐答案

Oracle.DataAccess.Client的版本必须与已安装的Oracle Client的版本完全匹配,因此无论如何,简单的替换将无法正常工作.

The version of Oracle.DataAccess.Client has to match exactly the version of installed Oracle Client, so a simple replace will not work anyway.

当加载DLL时,应用程序首先查看GAC.如果找不到DLL,则检查本地文件夹. -嗯,这是非常简短的版本,您可以在

When a DLL is loaded then the application first looks into the GAC. If the DLL is not found there then the local folder is check. - Well, this is the very short version, the proper version you find at How the Runtime Locates Assemblies

除此之外,您的问题对我来说还不是很清楚,您想实现什么目标,又有什么问题?您也可以使用文本编辑器编辑*.csproj/*.vbproj文件.

Apart from that, your question is not really clear to me, what do you try to achieve and what is the problem? You may also edit your *.csproj/*.vbproj file with a text editor.

这篇关于在Visual Studio-ASP.NET中替换引用时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆