在Visual Studio 2010上安装MVC 4之后的几个问题 [英] Few issues after installing MVC 4 on visual Studio 2010
问题描述
我已经在visual Studio 2010上安装了MVC 4.
以前已经安装了MVC 2和3。
I have installed MVC 4 on visual Studio 2010. Previously MVC 2 and 3 have been installed as well
一切正常,但尝试添加一个控制器,我收到以下错误:
Everything works fine but when trying to add a controller, I get the following error:
添加方式:
right click on Model folder > add > controller
当我清理项目并重试它的工作。
但是每次我建立它,然后我再次收到错误,直到我再次清理。
When I clean the project and retry it works. But each time I build it then I get the error again untill I clean again.
我可以生活在那里,但我意识到我无法添加视图模型类),一旦我检查,向导就会关闭。创建一个强类型的
I can live with that but I realized I cannot add a view(model class) either, the wizard would just close as soon as I check Create a strongly-typed
如何我修复了这些问题?我知道它与实体框架有关,但我不知道该怎么做。
How can I fix these issue? I know it is related to the Entity framework, but I don't know what to do at this point.
我尝试卸载,然后使用控制台重新安装NuGet ,问题依然存在。
I tried uninstalling then reinstalling using the the console and also NuGet, problem still persist.
推荐答案
我放弃了vs 2010与mvc 4,我使用mvc 4与vs 2012,而你可能没有那种奢侈你肯定会遇到与projectguids或程序集引用等的合法冲突...
I gave up on vs 2010 with mvc 4, I use mvc 4 with vs 2012, while you may not have that luxury, you are certainly running into legitimate conflicts with projectguids or assembly references etc...
过去我建议的一些事情可能不是你要找的,我将进一步寻找解决您的问题的方法,在此期间,请看这些stackoverflow链接。
A few things I suggested in the past may NOT be what you are looking for , I will look further for a solution to your problem, in the interim, see these stackoverflow links
构建错误 - 'System.Web.Mvc.ModelClientValidationRule'冲突
这篇关于在Visual Studio 2010上安装MVC 4之后的几个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!