The type or namespace name 'Core' does not exist in the namespace

c# entity-framework namespaces

Question

I encounter this kind of error when I debug a project I already have EntityFramework.dll, System.Core.dll, System.Data.Entity but still Core is not referenced.

Can someone help me?

I'm having error in this Line

using System.Data.Entity.Core.Objects;

This is the error:

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

1
4
9/29/2014 4:19:29 AM

Popular Answer

Enrique, I had this problem crop up when I started opening a project on my desktop that I had normally been opening on my VM. Masoud's answer is not helpful... I don't think he read your original post.

What I did to clear this compile error up was to open NuGet package manager and install the update that was available for EntityFramework. I had version 6.1.1 installed in the project and I upgraded to 6.1.3. I should not have had the error to start with, but upgrading the version appeared to jiggle whatever it was loose because I started compiling fine after that.

6
1/22/2016 1:38:29 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow