在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
一切正常,但试图添加a controller,I get the following error:
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
如何我修复这些问题?我知道它是与Entity框架相关,但我不知道在这一点上做什么。
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.
推荐答案
我放弃了对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
Build Errors - 'System.Web.Mvc.ModelClientValidationRule'Conflicts
这篇关于在Visual Studio 2010上安装MVC 4后很少有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!