问题描述
我只是碰到了一些在Visual Studio 2010 RC,这不是previously发生(例如,昨天)。没有软件的变化在这里,但我也碰到一些淤泥昨天,在编译需要重新启动。
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.
我无法通过添加对话框添加LINQ到SQL类的任何项目。我创建ASP.NET网站,ASP.NET MVC项目 - 这两项为模板,并为空 - 和要安装或没有可用的模板,似乎有
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.
我已经确定了项目目标的4.0框架。我可以轻松地添加新的数据库和ADO.NET实体框架模板在那里。
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.
作为一种变通方法,我可以复制一个DBML文件到我的项目,删除所有表和存储过程,更新连接字符串,并使用剩余的壳(设计师工作正常是这样),但它是一个痛苦。
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?
推荐答案
在Visual Studio中的previous版本,你可以使用此命令行开关启动VS时,复位的默认模板注册:
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
我还没有尝试过与Visual Studio 2010还没有 - 但它可能是值得一试!这绝对可用 - 看到VS的 MSDN文档2005年命令行开关
这篇关于无法添加LINQ to SQL类在VS2010项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!