2013-03-26 32 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

回答

相關問題