<inheritdoc /> issue according "Help file language"
Hello everyone,
The tag <inheritdoc /> doesn't work if "Help file language" is "French (France)". It does if it's "English (United States)".
I was able to reproduce the issue only by using doc inheritance between an interface and a class that implements it.
/// <summary>
/// Gère l'authentification à une base de données en permettant à l'utilisateur d'entrer
/// ses informations d'identification pour se connecter, réinitialiser son mot de passe
/// (s'il est expiré) et fermer la connexion.
/// </summary>
/// <remarks>
/// Auteur : Nicolas Fortin (Q068)<br/>
/// Date : 2016-11-11
/// </remarks>
public interface IGestAuthnBDBase : IDisposable
{
(...)
}
(...)
/// <inheritdoc />
public abstract class GestAuthnBDBase : IGestAuthnBDBase
{
(...)
}
See the result below.
"Help file language" is English:

"Help file language" is French:

I use SHFB 2016-9.17.0 and the project was build with VS2015.
Best regards,
Nicolas
Can you attach a small example that demonstrates the problem? The only XML comments files that are localized are the framework XML comments files. The documentation sources don't localize so the comments would be the same regardless of language. If inheritance wasn't working, I'd expect to see no comments, not comments in a different language.
Hello Eric,
Thank you very much for helping. I am in training and out of office today and tomorrow. I'll give you an answer not later than Wednesday.
Have a nice day,
Nicolas
Hello Eric,
I have the same problem with the following small example:
You can see here the documentation files that have been built:
- $\RMQ_TestDocInheritance\RMQ_TestDocInheritance_cpo\Help\Documentation - en.chm "Help file language" is "English (United States)": there is doc inheritance between the class and the interface.
- $\RMQ_TestDocInheritance\RMQ_TestDocInheritance_cpo\Help\Documentation - fr.chm "Help file language" is "French (France)": there is no doc inheritance between the class and the interface.
The SHFB file used to build the documentation files is:
$\RMQ_TestDocInheritance\RMQ_TestDocInheritance_cpo\RMQ_TestDocInheritance_cpo.shfbproj
Thank you for helping me.
Have a nice day,
Nicolas
Hello Eric,
Did you find something?
Are you able to reproduce the problem with the example provided?
Thanks,
Nicolas
I was able to duplicate the issue. It happens for me regardless of language. More likely than not, you've got a language pack installed so it finds framework comments for one language but not the other.
It's a bug related to the precedence of inherited comments. Since the class that inherits from the interface doesn't inherit from anything else, it's picking up the System.Object framework comments which take precedence over the interface comments. I just need to fix it so that if the base is System.Object, it ignores them and lets the interface comments take precedence.
I'll get this fixed for the next release. In the meantime, you can probably work around this issue by adding an explicit cref attribute that specified from which class to inherit the comments. By doing that it prevents the default inheritance rules from being used.
/// <inheritdoc cref="IGestAuthnBDBase" />
Hello Eric,
Thank you for your answer and for taking time to find the cause of this issue. I won't close the thread. You can close it if you want or keep it opens as a reminder.
Thanks again. Have a nice day.
Nicolas