Reputation: 2150
I have a C#3.5 console project.
I cannot find the System.Data.Entity
in my Add Reference
. The image tells.
It seems that all .NET 3.5 are missing. Or is .NET 3.5 designed not to be referenced in a console project?
Edit: My Property page. I still cannot get EF referenced.
Upvotes: 1
Views: 3565
Reputation: 12440
By default when you create a new Console Application in VS2010 the Target Framework
will be .NET Framework 3.5/4.0 Client Profile
. Go to the project properties and change it to .NET Framework 3.5/4.0
You will now be able to add the reference to EF.
If that does not work, as Rob said, ensure you have .Net Framework 3.5 Service Pack 1/Visual Studio 2008 SP 1 installed on your PC http://www.microsoft.com/download/en/details.aspx?id=22
Upvotes: 4
Reputation: 9422
Ensure you've got the .Net Framework 3.5 Service Pack 1/Visual Studio 2008 SP 1 installed. The first version of the Entity Framework shipped with the service pack.
http://www.microsoft.com/download/en/details.aspx?id=22
Upvotes: 1