Skip to content

Get nuget symbols from XML file next to dll for matching #8

@AyanSinhaMahapatra

Description

@AyanSinhaMahapatra

sometimes XML files beside a .dll file (with the same name) seems like it contains a lot of info on symbols, ti would be nice if we can extract the symbols from this XML file and match the XML file + the .dll file by matching source symbols.

Example:

Consider the binary: https://github.com/tmenier/Flurl/releases/download/Flurl.Http.4.0.2/Flurl.Http.4.0.2.nupkg

we have in the binary:

to/lib/net461/Flurl.Http.dll
to/lib/net461/Flurl.Http.xml
to/lib/net6.0/Flurl.Http.dll
to/lib/net6.0/Flurl.Http.xml
to/lib/netstandard2.0/Flurl.Http.dll
to/lib/netstandard2.0/Flurl.Http.xml

One of the XML file contents is as follows:

<?xml version="1.0"?>
<doc>
    <assembly>
        <name>Flurl.Http</name>
    </assembly>
    <members>
        <member name="T:Flurl.Http.Configuration.DefaultJsonSerializer">
            <summary>
            ISerializer implementation based on System.Text.Json.
            Default serializer used in calls to GetJsonAsync, PostJsonAsync, etc.
            </summary>
        </member>
        <member name="M:Flurl.Http.Configuration.DefaultJsonSerializer.#ctor(System.Text.Json.JsonSerializerOptions)">
            <summary>
            Initializes a new instance of the <see cref="T:Flurl.Http.Configuration.DefaultJsonSerializer"/> class.
            </summary>
            <param name="options">Options to control (de)serialization behavior.</param>
        </member>

Here the member names contains symbols:

<member name="T:Flurl.Http.Configuration.DefaultJsonSerializer">
<member name="M:Flurl.Http.Configuration.DefaultJsonSerializer.#ctor(System.Text.Json.JsonSerializerOptions)">

which can be matched to source symbols at the source archives from: https://github.com/tmenier/Flurl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions