The Entity framework v4 is only available on .net 4, as it's not available on .net 3.5 or earlier
So if you want to use a different target framework, you have to switch the target framework to something else by right-clicking the target framework node in the project explorer.