命名空间名称Infrastructure在命名空间system.data.entity中不存在

use*_*479 5 .net

我在system.data.entity命名空间中使用基础结构命名空间时收到错误消息

Ger*_*ard 16

您还需要对EntityFramework的引用,否则您将得到相同的错误.

  • 我[有同样的问题](http://stackoverflow.com/questions/22796205/visual-studio-2012-mvc-build-error-the-type-or-namespace-name-infrastructure)和EntityFramework是罪魁祸首.但仅通过NuGet包管理器安装包是不够的.然后我必须使用Reference Manager手动浏览到EntityFramework.dll. (2认同)

Rav*_*ale 4

您需要添加对 .NET 程序集的引用System.Data.Entity.dll