我已经安装了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为基于网站的项目)?如果有一些不必要的绑定.. –