Why does VS 2015 require a reference to System.Data.Entity, but VS 2013 is not?

I installed VS 2015 (not RC, although I had it installed earlier). I opened an existing solution that worked perfectly in VS 2013 and received the following error.

BC30652 Link needed to build 'System.Data.Entity, Version = 4.0.0.0, Culture = Neutral, PublicKeyToken = b77a5c561934e089' containing the EntityObject type. Add it to your project.

I added a link to System.Data.Entity in the project, as VS suggested, and it worked. However, I wonder why this happened.

If I remove the System.Data.Entity link, VS 2013 still works, but VS 2015 throws errors. The project has a link to System.Data.

Solution notes:

  • Originally developed in VS 2013
  • .NET 4.0
  • Also has a link to System.Data li>
  • It has 2 projects, the main one (which causes an error) and DAL
  • DAL has an entity data model (.edmx)
+6
source share
1 answer

I received confirmation from the Visual Basic language command, which is very likely due to a change in their compiler in Visual Studio 2015:

... we really worked to make things more permissive. But the summary is that the compiler may require more references to correctness. Add them if you can. I believe there is a quick fix if you call a light bulb.

+8
source

All Articles