Tool to extract source code from a executable or pdb using sourcelink.
$ dotnet add package SourceLinkExtractA tool to extract source files using sourcelink metadata.
dotnet extract ./test.dll ./test-meta/
The input filepath can be a pdb, or compilation (exe/dll/...).
./test.dll
./test.pdb
./test.exe
Filepath of the metadata dump, in the following format:
{
"link": {
"documents": {
"/_/*": "https://raw.githubusercontent.com/ProphetLamb/Surreal.Net/9050c906117c795ca385fd52b75062771a2a8816/*"
}
},
"docs": [
{
"name": "src/Abstractions/Database.cs",
"lang": "3f5162f8-07c6-11d3-9053-00c04fa302a1",
"algo": "8829d00f-11b8-4213-878b-770e8597ac16",
"hash": "sksvYzgtjDMO34efmUFUzcmtYiT/TuXUrURrbf9dNwk="
},
[...]
]
}
Output directorypath of extracted sourcecode.
./meta/src/Abstractions/Database.cs
[...]