Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Visual Studio does not show Quick-Info documenation for .NET classes in Unity Projects

Discussion in 'Code Editors & IDEs' started by GlowingOrb, Jan 13, 2022.

  1. GlowingOrb

    GlowingOrb

    Joined:
    Dec 2, 2021
    Posts:
    2
    As a Unity-Newbie, I noticed that at least in my installation,both Visual Studio 2022 and 2019 do not show Quick-Info documentation for .NET classes in Unity Projects.

    For own classes and unity classes, everything works fine:


    but for .NET classes the documentation is not displayed:


    When in Non-Unity C# Projects (e.g. when creating a default console application), everything works fine as well:


    Is this normal for Unity-Projects? If not: What could be the reason and what could I do to fix this?
     
  2. GlowingOrb

    GlowingOrb

    Joined:
    Dec 2, 2021
    Posts:
    2
    I found the reason and a workaround:
    The netstandard.dll provided by unity does not come with the xml-file that contains the documentation-comments. To fix this get the netstandard.library package via nuget (https://www.nuget.org/packages/NETStandard.Library.Ref). In it, find the netstandard.xml file and copy it next to Unity's netstandard.dll (e.g. C:\Program Files\Unity\Hub\Editor\2021.2.7f1\Editor\Data\NetStandard\ref\2.1.0)