One of our development machines is giving an error saying that DbContext
does not implement IDisposable
. According to a similar SO post, this is because we are not referencing EF 5. The problem assembly has a *.edmx
file built with older EF 4 constructs (ObjectContext
). This same assembly also has a newly added *.edmx
file with the newer constructs (DbContext
).
A different project on a different machine also uses DbContext
and works fine. Said project shows the following information for EntityFramework.dll
:
version: 4.4.0.0
Runtime Version: v4.0.30319
I checked the bad build machine and it also has this same version of EntityFramework.dll
.
Microsoft has had confusing conflicts between development and marketing version naming conventions. So does EF 5 mean the dll version should say 5.0?
In other words, am I running v4.0 on the good build machine? If so why is the build successful?