Search code examples
entity-frameworkedmx

EF 4.3.1 with VS 2011


I need to know if it is possible to start using the latest version of EF (4.3.1) with VS 2011 without having to install these CTP components as stated here.

I had these components installed but I removed them and since then I can't add a new edmx file to .net 4 targeted project; it complains about missing reference to System.Data.Entity.

Do I need to re install VS 2011?


Solution

  • After I removed and reinstalled Visual Studio, I still couldn't get red of the error, so I used process monitor to log what Visual Studio is doing with System.Data.Entity as a path filter, turned out that Visual Studio was reading from

    C:\Windows\Microsoft.NET\assembly\GAC_MSIL\policy.4.0.system.data.entity v4.0_0.0.0.0__b77a5c561934e089\policy.4.0.system.data.entity.config

    which had binding to the

    System.Data.Entity.dll v 4.2.0.0


    once I cleared the file VS was worked like charm.

    The CTP uninstall left this out.