开发者

Missing ADO.net Entity framework template in VS 2010 SP1

I am having VS 2010 Professional with SP1. I can see EF liste开发者_JAVA技巧d under Uninsall/remove a program list.

I have already referred these questions which don't have any solution. Hence starting a new thread.

  • SO entry1
  • SO entry2

Searching over internet didn't provide much help either. There were few blogs suggesting to reinstall VS 2010.

Is there a way I can download and copy ADO.net EF template on my machine without the need to reinstall VS 2010. Thank you.

Screen capture from Unistall/remove programs

Missing ADO.net Entity framework template in VS 2010 SP1

Missing Template in VS 2010 SP1

Missing ADO.net Entity framework template in VS 2010 SP1

.net Target Framework

Missing ADO.net Entity framework template in VS 2010 SP1

Missing template (.zip)

Missing ADO.net Entity framework template in VS 2010 SP1


The template itself is normally located under \Program Files[ (x86)]\Microsoft Visual Studio 10.0\Common7\ide\itemtemplates\CSharp\Data\1033 in a zipfile called AdoNetEntityDataModelCSharp.zip . There is also a copy in \Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ ItemTemplatesCache\CSharp\Data\1033 , which is where VS reads it from.

Does that file exist in both locations? If not, copy it from another machine. If it exists but doesn't show up in VS, something else is wrong. In that case try running devenv.exe once with the /resetskippkgs command line parameter.


Had the same problem on VS2010 SP1, with Win7 and SQL Server 2008. Did not want the hassle of uninstall/reinstall VS2010 so kept looking. Found this solution here that got the template to work: No Entity Data Model (EDMX) Template with Visual Studio 2010 SP1 & ADO.NET Entity Framework 4.1

I still get some error messages at load time of VS2010, but have not yet tried the /resetskippkgs switch after installing the EF.


Reinstalling VS 2010 fixed the problem with ADO.net EF project template.

  1. Uninstall VS 2010
  2. Uninstall all Add-ons like SL toolkit EF Library 4.0
  3. Install VS 2010
  4. Install any other add-ons

Restart the machine when requested by the installer.


Also, please try out this.

When I ran VS 2010 in maintenance mode, the EF template problem got fixed. But I was not able to create any EDMX. I got missing DLL error. I did not try copying DLL from other's machine. I think that might have fixed the problem.


[Edit]

As Sutikshan Dubey has suggested, please check if "Add New item" fixes the problem No Entity Data Model (EDMX) Template with Visual Studio 2010 SP1 & ADO.NET Entity Framework 4.1

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜