名称空间“microsoft.web”中不存在类型或命名空间名称“网页”

时间:2015-01-20 15:54:42

标签: c# asp.net asp.net-mvc

我被上面提到的错误困在我的项目中。我多次尝试过copy local=true<private>true</private>,但这并不能解决我的问题。我还有其他错误,例如:

The type or namespace name 'Transcations' does not exist in the namespace 'system'

the type or namespace name 'web matrix' does not exist in the namespace 'system'

the type or namespace name 'optimization' does not exist in the namespace 'system.web'

Error   18  The type or namespace name 'IMigrationMetadata' could not be found (are you missing a using directive or an assembly reference?)

Error   23  The type or namespace name 'HttpConfiguration' could not be found (are you missing a using directive or an assembly reference?)

Error   2   The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)

Error   3   The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)  

Error   4   The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)

Error   6   The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)

还有更多......

我有所有的nuget包。请帮助我。

1 个答案:

答案 0 :(得分:-1)

如果查看documentationSystem.Data.Entity程序集中包含EntityFramework.dll命名空间。在Visual Studio中打开Package Manager并运行此命令以通过NuGet安装它。

Install-Package EntityFramework