RicoSuter / Namotion.Reflection

.NET library with advanced reflection APIs.
MIT License
212 stars 44 forks source link

GetXmlDocsSummary is not working for inheritance across multiple projects #128

Open XamReruam opened 1 year ago

XamReruam commented 1 year ago

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 commented 1 year ago

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