visual-studio-2010entity-frameworkedmxentity-model

Entity Designer for .edmx file doesn't work in VS2010


I have a .edmx file and I can't open it with the designer. It just opens as plain XML file. When I try to "run custom tool" on it, then it says that:

The custom tool 'EntityModelCodeGenerator' failed. Could not load file or assembly 'Microsoft.Data.Tools.VSXmlDesignerBase, Version=10.0.0.0, ...' or one of its dependencies. The system cannot find the file specified.

And indeed, I don't have this file on my system. I've tried copying it to my machine, but then I get:

An error occurred loading the Entity Data Model Tools Package.

I have VS2010 SP1 Professional installed.

I've tried repairing and reinstalling VS and SP1, and installing some entity packages/patches (I don't remember the exact names of them), but that didn't help. What else can I try?


Solution

  • It appears that my installation package didn't have the L2E tools.