错误:Error
1
The type 'System.Web.Mvc.ModelClientValidationRule' exists in both 'c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\System.Web.WebPages.dll' and 'c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll'
c:\users\derek\documents\visual studio 2010\Projects\MvcApplication1\MvcApplication1\Models\AccountModels.cs
242
28
MvcApplication1
Error
2
Metadata file 'c:\users\derek\documents\visual studio 2010\Projects\MvcApplication1\MvcApplication1\bin\MvcApplication1.dll' could not be found
MvcApplication1.Tests
解决办法:更改文件目录下的 工程名.
.csproj,将
<ReferenceInclude="System.Web.WebPages"/>改为
<Reference Include="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL "/>