In a .NET Core App, if I do
typeof(DateTime).Assembly.Location
I get
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Private.CoreLib.dll
But the documentation for the DateTime struct says the assembly is System.Runtime.dll
I am trying to locate the XML Documentation file for DateTime. I cannot locate a System.Private.CoreLib.xml on my system but a System.Runtime.xml does accompany the System.Runtime.dll file in its folder (per XML documentation convention).
How does System.Private.CoreLib.dll relate to System.Runtime.dll ?
I am trying to use Roslyn to grab the XML <Summary> tag content, (similar to a hover tooltip in Visual Studio) but I cant see how to associate a Type with the location of the XML documentation ?