I have a piece of documentation that references a class located in another namespace using the <see />
tag.
In order for Intellisense to know what the identifier refers to and have the class name colored in blue-ish within the comment, I need to add the right using statement, which makes sense.
However, Intellisense is also marking that using statement as being unused by fading it out, which could cause other users or some automatic code cleanup to remove it.
The problem is that, if that using statement is removed, Intellisense no longer recognizes the identifier in the documentation.
How could I solve this ? Thank you.
EDIT Some example :
Let :
namespace Foo
{
public class Bar
{
}
}
And :
using Foo; // In use by the documentation, but faded out.
namespace Baz
{
/// <summary>
/// See <see cref="Bar"/>
/// </summary>
public class UsesBar
{
}
}
I'm using VS2017
You need to use the fully qualified name of the class within the xml comment for it be recognized by the VS IntelliSense.