我刚刚安装了MVC 4 Beta,现在我的MVC 3应用程序无法编译,出现以下错误:
类型'System.Web.Mvc.ModelClientValidationRule'存在于'c:\ Program Files(x86)\ Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll'和'c:\程序文件(x86)\ Microsoft ASP.NET\ASP.NET网页\ v2.0\Assemblies\System.Web.WebPages.dll'C:\ Users\michaeljo\Documents\src\patientgive\Phc.Mvc\Infrastructure\PasswordStrengthAttribute.cs
看起来这已被移动到不同的程序集,因为两个程序集都在GAC中,所以它不知道使用哪个程序集.
我在新的visual studio 2012 RC中的asp net mvc 3项目中有intellisense的问题.
如果我在VS2012中打开VS2010 SP1 asp net mvc项目,那么cshtml视图如下:
@model Intranet.Web.ViewModels.Login.LoginVM
@{
Model. // dynamic expression - This operation will be resolved at runtime
}
Run Code Online (Sandbox Code Playgroud)
我的配置:Windows 8 x86(x64也失败),VS 2012和2010SP1已安装.
那么,这个错误吗?
谢谢