Development With A Dot

Blog on development in general, and specifically on .NET



My Friends

My Links

Permanent Posts

Portuguese Communities

Entity Framework Pitfalls – Migrations Require .NET 4.5

Updated on 28-08: not sure how this problem appeared, but apparently this no longer happens.

If you are to use Entity Framework Code First Migrations, you need to have your project set to use .NET 4.5, before getting the EntityFramework package from NuGet. If you don’t, you will get the .NET 4.0 version, which doesn’t support Migrations out of the box.


In order to add this support for .NET 4.0, you need to follow these instructions:


Anon said:

This is not true. I'm using it with `VS 2010` and it works fine.

# August 28, 2013 11:52 AM