ASP.NET MVC:单元测试错误 - "在这两个Y和Y QUOT X型的存在; [英] ASP.NET MVC: Unit Tests Error - "The type X exists in both Y and Y"

查看:129
本文介绍了ASP.NET MVC:单元测试错误 - "在这两个Y和Y QUOT X型的存在;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想测试与单元测试的MVC 3 web项目,但继续收到错误消息。所有的错误消息似乎有类似的一个开始,然后移出不同的。

I'm trying to test an MVC 3 web project with unit tests but keep on getting error messages. All the error messages seem to start off with a similar one and then moves off to different ones.

这对导致问题不断的错误消息是'在这两个System.Web.Mvc.dll程序的X型的存在和System.Web.Mvc.dll程序每当我把X置于立即窗口。

The error message that keeps on causing problems is 'The type X exists in both "System.Web.Mvc.dll" and "System.Web.Mvc.dll"' whenever I put X into the immediate window.

有只有一个参考System.Web.Mvc项目,虽然它链接到其他项目,以及他们的System.Web.Mvc.dll程序引用是完全一样的好。

There is only one reference to System.Web.Mvc in the project, and although it links to other projects as well their System.Web.Mvc.dll reference is exactly the same as well.

任何人有什么想法?

推荐答案

检查,如果你有两个不同版本的 System.Web.Mvc.dll程序

Check if you have two different versions of System.Web.Mvc.dll.

这篇关于ASP.NET MVC:单元测试错误 - "在这两个Y和Y QUOT X型的存在;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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