New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C# cref or \ref doesn't work without full namespace, even for classes in same namespace #10766
Comments
…ce, even for classes in same namespace Also check against the case that we have a `.` as separator (i.e. C# or Java) in the context name.
I've just pushed a proposed patch, pull request #10795 |
The same problems exist in Python. I need to write whole path, i.e. package.sub_package.file_name.class_name.function_name to resolve the function. |
@zhangzq The python problem should also be fixed with the patch #10795, did you try it?
|
it works. very cool! thanks. |
Code has been integrated in master on GitHub (please don't close the issue as this will be done at the moment of an official release). As the code has been reworked, can you please retest. |
This issue was previously marked 'fixed but not released', |
Describe the bug
Referencing another class (in this case called TopLayerDependency) in the same namespace with
<see cref="TopLayerDependency"/>
does not create a link when the class name is not qualified with the (common) namespace. In the output I seeunable to resolve reference to 'TopLayerDependency' for \ref command
.Screenshots
To Reproduce
Default Doxyfile without modifications used to reproduce the issue.
Place these two files in the folder Doxygen is run from:
File GenerationSource.cs
File TopLayerDependency.cs
Expected behavior
I would expect class names in the same namespace to be turned into links without having to specify the namespace.
Version
1.10.0 (GIT-NOTFOUND)
Doxygen installed via brew
macOS 12.5.1
Additional context
None of my other cross references get turned into links either (for example references from one method to another method in the same class). It seems like something is very broken about Doxygen reference resolution for xmldoc and/or C#, but I think this report here is the simplest demonstration, so let's start with that. With any luck, the fix for this will fix the other ones too.
The text was updated successfully, but these errors were encountered: