Entity Framework References go missing between debug and release build

c# console-application entity-framework-6

Question

There must be something in the distinction between debug builds and release builds, as well as its use of references, that I don't understand. I'm connecting to a previously configured database using Entity Framework 6 at the moment. While it is in Debug mode, I can successfully build and run the project. If I switch it to release mode, I immediately start receiving build errors that say the namespaces and types that were previously present are no longer available. As far as I can tell, they both target framework, having checked. The Net 4.5 that I noticed might have been problematic for some other individuals. I don't see any differences in the references mentioned in my solution explorer.

Utilizing Visual Studio 2013, I'm using I'm willing to contribute any code, but I'm not sure which would be the most useful.

Some of the errors I'm experiencing 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 

I appreciate any advice you may give.

1
8
6/2/2015 12:58:59 PM

Accepted Answer

ZZZ_tmp
6
8/20/2015 6:19:06 AM

Popular Answer

ZZZ_tmp


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow