I've converted an ASP.net MVC 4 project from .NET 4.0 to .NET 4.5 following the technique outlined in this SO answer -- in particular in the vbproj
file I've set TargetFramework
to v4.5
and Prefer32Bit
to false
.
I now get the following error in the Entity Framework model (inherited from the MVC template project)
TableAttribute is ambiguous in the namespace
System.ComponentModel.DataAnnotations.Schema
Using Object Explorer I've seen that TableAttribute
in present in assemblies System.ComponentModel.DataAnnotations.dll
(taken from the reference assemblies) and EntityFramework.dll
(taken from Entity Framework 5 installed from NuGet).