错误CS0433:类型'System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedAttribute'存在

时间:2013-03-26 16:20:22

标签: teamcity

我使用.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。请建议我如何解决并继续这个?

1 个答案:

答案 0 :(得分:0)

从Nuget Manager重新安装Entity Framework