我已经按照此SO 答案中概述的技术将 ASP.net MVC 4 项目从 .NET 4.0 转换为 .NET 4.5 - 特别是在vbproj
我设置TargetFramework
为v4.5
和的文件Prefer32Bit
中false
。
我现在在实体框架模型中得到以下错误(继承自 MVC 模板项目)
TableAttribute is ambiguous in the namespace
System.ComponentModel.DataAnnotations.Schema
使用对象资源管理器,我TableAttribute
在程序集中System.ComponentModel.DataAnnotations.dll
(取自参考程序集)和EntityFramework.dll
(取自从 NuGet 安装的实体框架 5)中看到了这一点。