[VS 2015 CTP] Don’t understand why it’s not finding the EF6 classes.

I'm a .NET veteran, and I downloaded the 2015 CTP to tinker around with some of the new features coming out.

I have used EF4 and EF5 extensively and am very familiar with its conventions and patterns and was attempting to setup a DbContext and get some code first DB schema generation going.

I have used "Add Reference…" to add a reference to both System.Data.Entity and System.Data.Entity.Design. I used Nuget to install EF6 to the project. If I check the properties of either in the references section of the solution manager, they point to valid paths for both dlls.

In the code editor, no errors are displayed, and if I hover over things like DbSet, it shows that it gets that it's a System.Data.Entity.DbSet.

However, when I compile, I get this: "The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) "

I have cleaned and rebuilt a couple of times, and that didn't make a difference.

by ExistentialEnso via /r/csharp

Leave a Reply