ASP.NET MVC: unit test error - "Type X exists in both Y and Y"

I am trying to test the MVC 3 web project with unit tests, but keep getting error messages. All error messages seem to start with a similar one, and then move on to others.

The error message causing the problem is, 'The type X exists in both "System.Web.Mvc.dll" and "System.Web.Mvc.dll"' when I put X in the closest window.

The project has only one link to System.Web.Mvc, and although it refers to other projects, it also refers to their link System.Web.Mvc.dll.

Does anyone have any ideas?

+1
source share
1 answer

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

0
source

Source: https://habr.com/ru/post/1342996/


All Articles