vs2010 mysql linq to sql 系列,无法添加LINQ to SQL类在VS2010项目

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.

notemplate.png

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?

解决方案

In previous versions of Visual Studio, you were able to "reset" the default template registration using this command line switch when launching VS:

devenv.exe /InstallVSTemplates

I haven't tried it with Visual Studio 2010 yet - but it might be worth a try! It's definitely available - see the MSDN docs on VS 2005 command line switches.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值