我已經安裝了entity framework v 6.0.0.0 nuget包。構建失敗實體框架 - 編譯錯誤
在本地構建解決方案時,它工作良好,沒有任何問題。但是,當我檢查代碼並在構建服務器上運行時,它會拋出編譯錯誤。
Primary reference "EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL". C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
任何建議,將不勝感激。先謝謝你。
重新安裝實體框架nuget包。 –
我試了很多次。似乎沒有工作。這是許多論壇提供的解決方案。 – Vicky
嗯真的很奇怪。這是應用程序還是Web項目?可以檢查app.config(web.config爲基於網站的項目)?如果有一些不必要的綁定.. –