I opened and edited the ASP.NET MVC 3 application developed in Visual Studio 2010 in Visual Studio 2012. It worked fine in debug mode, but when I tried to publish it (release mode), it failed and threw the following warnings and errors.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "EntityFramework". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. error CS0234: The type or namespace name 'Infrastructure' does not exist in the namespace 'System.Data.Entity' (are you missing an assembly reference?) error CS0246: The type or namespace name 'DbContext' could not be found (are you missing a using directive or an assembly reference?) error CS0246: The type or namespace name 'DbModelBuilder' could not be found (are you missing a using directive or an assembly reference?) error CS0246: The type or namespace name 'DbSet' could not be found (are you missing a using directive or an assembly reference?)
EntityFramework.dll is present in the bin folder and EntityFramework 5.0 is installed. Can this be solved?
What am I doing wrong during the migration of this project? Microsoft says no changes are required when moving from VS 2010 to VS 2012 http://msdn.microsoft.com/en-us/library/vstudio/jj161050.aspx#ASP .
source share