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 ?
How does
System.Private.CoreLib.dllrelate toSystem.Runtime.dll?
System.Runtime.dll is a so-called Reference assembly, which means it's only containing the public API without implementation:
Reference assemblies are a special type of assembly that contain only the minimum amount of metadata required to represent the library's public API surface.
For the actual implementation it's forwarding to other assemblies, the so-called implementation assemblies.
One of these implementation assemblies is System.Private.CoreLib.dll.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With