ASP.NET MVC 2:为什么我的应用程序引用两个版本(1 和 2)?

发布于 2024-09-11 10:13:38 字数 314 浏览 1 评论 0原文

我在 Reflector 中打开了我的 ASP.NET MVC 2 项目的 DLL,并注意到有两个对 System.Web.Mvc 的引用 - 一个用于版本 1.0.0.0,另一个用于版本 2.0.0.0。我在 csproj 文件和 web.config 文件中似乎没有任何对 v1 的引用,但是当我尝试运行该应用程序时,我收到错误 无法加载文件或程序集“System.Web.Mvc” , Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 或其依赖项之一。

对 v1 的依赖项来自哪里?

I opened up the DLL for an ASP.NET MVC 2 project of mine in Reflector, and noticed that there are two references to System.Web.Mvc - one for version 1.0.0.0, and one for 2.0.0.0. I don't seem any references to v1 anywhere in the csproj file, nor in my web.config file, but when I try to run the app I get the error Could not load file or assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

Where would the dependency on v1 be coming from?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

暮色兮凉城 2024-09-18 10:13:38

您可能通过不同的程序集间接引用 v1。

You probably have an indirect reference to v1 through a different assembly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文