Missing reference to System.Web.Mvc in Asp.net Unit Test? -


i made unit tests asp.net mvc application, or tried to, keep telling me "the type 'system.web.mvc.controller' defined in assembly not referenced. must add reference assembly 'system.web.mvc, version=5.1.0.0, culture=neutral.' tried add reference above mentioned, able choose version 4.0.0.0 , tells me project uses version 5.1.0.0, higher version. do?

thanks bunch!

mvc 5 comes in nuget package. did main mvc web project in solution. install mvc via nuget test project, , should go.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -