Skip to content
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

GetXmlDocsSummary is not working for inheritance across multiple projects #128

Open
XamReruam opened this issue May 2, 2023 · 1 comment

Comments

@XamReruam
Copy link

The GetXmlDocsSummary method currently does not return a value for properties inherited from classes of other projects

A simple example:
Project A

public class MainTest
    {
        public static void Main() {
            foreach (PropertyInfo prop in typeof(ChildClass).GetProperties())
            {
                Console.WriteLine("Name: " + prop.Name);
                Console.WriteLine("Summary: " + prop.GetXmlDocsSummary());
            }
        }
    }

public class ChildClass : ParentClass { }

Project B

public class ParentClass
    {
        /// <summary>
        /// This summary will not be shown
        /// </summary>
        public string Value { get; set; }
    }

Output:
Name: Value
Summary:

@RicoSuter
Copy link
Owner

Is this failing because XML Docs of referenced projects is missing in the output directory?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants