gpt4 book ai didi

c# - 如何获取 Visual Studio Intellisense 工具提示以显示 .NET Framework 3.5 的说明?

转载 作者:太空狗 更新时间:2023-10-29 20:09:26 25 4
gpt4 key购买 nike

我的项目需要使用 .NET Framework 3.5,因为它使用了一些较旧的功能。

Visual Studio 中的工具提示不会像针对更高版本的框架时那样显示描述。我只看到方法签名和数据类型等基本信息。有办法解决这个问题吗?

我在 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5 中查找了 xml 文件,看起来它只有用于3.5 客户资料。

我尝试通过此链接重新安装 3.5 框架:https://www.microsoft.com/en-us/download/details.aspx?id=21

我不知道它是否有效。当我运行可执行文件时,什么也没有发生。我尝试以管理员身份运行。当我从命令提示符运行它时,没有输出。

我注意到该文件比下载的最新 .NET 框架文件小一百倍。这是否意味着它不包含它应该包含的文件?

我猜是否有修复,它要么为 .NET 3.5 获取正确的 xml 文件,要么让 Visual Studio 使用 .NET 4.6 的 xml 文件,即使我的项目的目标是 3.5。

提前致谢!

最佳答案

不幸的是,我不认为早期版本的 .net 提供了您想要的工具提示级别。您可以尝试的最后一件事是确保启用“添加 Windows 程序和功能”中的所有元素。不确定您运行的是哪个版本的 Windows,但这应该可以解释我的意思:

https://learn.microsoft.com/en-us/dotnet/framework/install/dotnet-35-windows-10

You can enable the .NET Framework 3.5 through the Windows Control Panel. This option requires an Internet connection.

  1. Press the Windows key Windows Windows logo on your keyboard, type "Windows Features", and press Enter. The Turn Windows features on or off dialog box appears.
  2. Select the .NET Framework 3.5 (includes .NET 2.0 and 3.0) check box, select OK, and reboot your computer if prompted.

Windows Features

关于c# - 如何获取 Visual Studio Intellisense 工具提示以显示 .NET Framework 3.5 的说明?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43664177/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com