Recently, I wanted to do a project in Silverlight 4 using EF4(Entity Framework 4). When I went to add the ADO.Net Entity Data Model class, I received this error message:
The project’s target framework does not contain Entity Framework runtime assemblies. Please review the target framework information in the project’s property page.
I checked my .Net framework version, and it was .Net 4.0. So I went searching on Google and found this thread on MSDN. It seems that there is a problem with VS2010/Productivity Power Tools when using EF4.
If you run across this problem, here are the steps for you to take:
1. Change the target framework to .Net 3.5.
2. Rebuild the project.
3. Change the target framework back to .Net 4.0.
4. Rebuild the project.
You should now be able to add the EF4 model class to your project.
Another option would be to disable the Productivity Power Tools extension, but if you are like me, the extension is a great extension and I wanted to keep it.
Hope this helps out anybody in the future.