Can't Add LINQ to SQL classes to projects in VS2010

Posted by MisterJames on Stack Overflow See other posts from Stack Overflow or by MisterJames
Published on 2010-04-01T18:41:24Z Indexed on 2010/04/01 18:43 UTC
Read the original article Hit count: 349

Filed under:
|
|

I just ran into something in Visual Studio 2010 RC that wasn't previously happening (like, yesterday). No software changes here, but I did run into some muck yesterday when compiling that required a reboot.

I am unable to add LINQ to SQL classes to any project through the add dialog. I have created ASP.NET web sites, ASP.NET MVC projects - both of these as 'templated' and as 'empty' - and there appear to be no templates installed or available.

alt text

I have made sure that the project targets the 4.0 Framework. I can easily add a new database and the ADO.NET entity framework templates are there.

As a workaround I can copy a DBML file to my project, delete all tables and sprocs, update the connection string and use the leftover shell (the designer works fine like this), but it's a pain.

Has anyone else had their templates drop? Figured out how to reinstall them?

© Stack Overflow or respective owner

Related posts about VS2010

Related posts about .NET