错误提示:
Error 1 The type 'System.Web.Mvc.ModelClientValidationRule' exists in both 'c:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv2.0AssembliesSystem.Web.WebPages.dll' and 'c:Program Files (x86)Microsoft ASP.NETASP.NET MVC 3AssembliesSystem.Web.Mvc.dll'
解决方法:
打开“.csproj”文件,将<Reference Include="System.Web.WebPages"/>
修改为:
<Reference Include="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL "/>