ASP.NET MVC 2:为什么我的应用程序引用两个版本(1 和 2)?
我在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能通过不同的程序集间接引用 v1。
You probably have an indirect reference to v1 through a different assembly.