1

我使用 .net 2012 版和 MS build 4.0 subveriosn Ankh SVN 存储库与团队城市进行持续集成。当我运行解决方案时,它抛出如下错误

(26, 10): 错误 CS0433: 类型 'System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedAttribute' 存在于 'c:\BuildAgent\work\98284cd997678fbf\IC.Icrmas.UI\bin\EntityFramework.dll' 和 'c :\Windows\Microsoft.NET\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll'

我仔细看到项目中引用的 dll 版本和引用位置都是相同的。在我的构建代理中,我安装了 .Net 框架 4.5。请建议我如何解决并继续进行此操作?

4

1 回答 1

0

从 Nuget 管理器重新安装实体框架

于 2015-04-16T11:26:36.563 回答