I want reference to EF source codes projects instead its assemblies in my project for some tracing goals, so I downloaded EF source codes from CodePlex, and add it to my project, it compiles well by .NET Framework 4.5, but my project is in .NET Framework 4(I have to stay with .NET4), when I change its target framework to .NET 4 it could not compile successfully, I get some errors, e.g:
Error 29 The type or namespace name 'DatabaseGeneratedOption' could not be found (are you missing a using directive or an assembly reference?) C:\Users\8060509\Downloads\entityframework-899f1fb43a0d92c22ea381edafc50a350e391a5a\src\EntityFramework\ModelConfiguration\Configuration\Properties\Primitive\Api\BinaryPropertyConfiguration.cs 102 13 EntityFramework
and
Error 1 The type or namespace name 'ColumnAttribute' could not be found (are you missing a using directive or an assembly reference?) C:\Users\8060509\Downloads\entityframework-899f1fb43a0d92c22ea381edafc50a350e391a5a\src\EntityFramework\ModelConfiguration\Conventions\Configuration\Property\ColumnAttributeConvention.cs 13 61 EntityFramework
and ...
What is the solution?