There must be something I donβt understand about the difference between debug builds and releases and using references. I am using Entity Framework 6 to connect to a database that was previously configured. I can successfully create and run a project while it is in debug mode. If I change it to release mode, I immediately get build errors indicating that the namespaces and types that were there can no longer be found. I checked and as far as I can tell, both the .Net 4.5 target framework that I saw might have been a problem for some other people. I see no difference in what is indicated in the links in my solution explorer.
I use visual studio 2013. I am happy to provide any code, but I do not know what would be most relevant.
Some of the errors I get are:
The type or namespace name 'Entity' does not exist in the namespace System.Data' (are you missing an assembly reference?) in Holds.Context.cs The type or namespace name 'DbContext' could not be found (are you missing a using directive or an assembly reference?) in Holds.Context.cs The type or namespace name 'DbSet' could not be found (are you missing a using directive or an assembly reference?) in Holds.Context.cs
Thanks for any recommendations that can be provided.
c # console-application entity-framework-6
Bryan pritchett
source share