VS2005选项生成方法存根不起作用
好吧,我安装了 linq 预览版(2006 年 5 月),但它似乎把我搞砸了。现在,VS2005 中最重要的功能之一不再起作用(选项生成方法存根 (Shift+Alt+F10))。我以前每次启动项目时都会收到此消息 (“这是 Microsoft Visual C# 3.0 / Microsoft Visual Basic 9.0 不受支持的版本。因此,许多功能可能无法按预期工作。”)。 我卸载了它,该功能仍然无法工作,但错误消息现在消失了。 如果您不知道我在说什么,请在 Visual Studio 代码编辑器中输入以下简单代码:“string myString = GetString();”如果不先声明 GetString(),您将在 GetString() 下获得一个智能标记,当您选择它时,您会看到一个下拉菜单,询问您是否要自动生成此方法存根。
有没有办法重新启用它?
Ok I installed the linq preview(May 2006) and it seems to have screwed me up. Now the one the of the most important features in VS2005 is not working anymore (Options Generate Method Stub (Shift+Alt+F10)). I used to get this message every time I would start a project
("This is an unsupported version of Microsoft Visual C# 3.0 / Microsoft Visual Basic 9.0. Therefor, many features may not work as expected.").
I uninstalled it and the feature is still not working but the error message is gone now.
If you don't know what I'm talking about if you type this simple code in you visual studio code editor: "string myString = GetString();" without declaring GetString() first, you will get a smart tag under GetString() and when you select it, you get a drop down that asks if you want to auto generate this method stub.
Is there a way to re-enable it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不知道为什么你安装了这个古老的版本,但你也正确安装了 dotNet 2 吗?
您可能需要手动重新安装。
Not sure why you installed this ancient version but did you also properly install dotNet 2?
You may have to re-install by hand.