2013-03-26 31 views
1

我使用.net版本2012和MS版本4.0 subveriosn与团队城市的Ankh SVN存储库持续集成。当我运行它抛出eror如下错误CS0433:类型'System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedAttribute'存在

(26,10)的解:错误CS0433:类型 'System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedAttribute' 存在于两个“C:\ BuildAgent \工作\ 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。请建议我如何解决这个问题并继续进行下去?

+0

有点晚了重新安装实体框架,但[这](http://social.msdn.microsoft.com/Forums/en-US/02a22079-e3c4-4d90-9dbf-c73f59c409fd/build-errors-after-changing-an-mvc-internet-project-from-net40-to-net45)或[this](http://stackoverflow.com/questions/13810017/what-is-the-reference- for-system-data-entity-infrastructure)可能有助于其他任何人的搜索。 – user326608 2013-09-30 02:54:03

回答

相关问题