在Visual Studio 2010中安装MVC 4之后的几个问题 [英] Few issues after installing MVC 4 on visual Studio 2010
问题描述
我在Visual Studio 2010中安装MVC 4。
previously 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...
我在过去提出有几件事情可能不是你在找什么,我会再寻找一个解决问题的方法,在此期间,看到这些计算器链接
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
<一个href=\"http://stackoverflow.com/questions/8512021/build-errors-system-web-mvc-modelclientvalidationrule-conflicts/9551791#9551791\">Build错误 - System.Web.Mvc.ModelClientValidationRule冲突
<一个href=\"http://stackoverflow.com/questions/7510484/modelclientvalidationrule-conflict/9551774#9551774\">ModelClientValidationRule冲突
这篇关于在Visual Studio 2010中安装MVC 4之后的几个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!