VS2005选项生成方法存根不起作用

发布于 2024-09-12 12:17:28 字数 406 浏览 1 评论 0原文

好吧,我安装了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南薇 2024-09-19 12:17:28

不知道为什么你安装了这个古老的版本,但你也正确安装了 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文