Skip to content
\n

If the test assembly exclusively contains abstract classes without method bodies or interfaces, as expected, nothing is output.

\n
interface ITest {\n    string Name { get; set }\n    string Surname { get; set; }\n    string FullName();\n}\nabstract class Test : ITest {\n    abstract string Name { get; set }\n    abstract string Surname { get; set; }\n    abstract string FullName();\n}
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

I solved it using the regular MetadataReader. In the hope that it will help someone after me, I published two tools that extract the data I require.

\n\n
dotnet tool install --global SourceLinkExtract\ndotnet tool install --global SourceSymbolMapper\n\nextract test.pdb meta.json out\nmapper meta.json out symbols.json
","upvoteCount":1,"url":"https://github.com/jbevain/cecil/discussions/878#discussioncomment-3719466"}}}

Determine filename of Interface declaration #878

Answered by ProphetLamb
ProphetLamb asked this question in Q&A
Discussion options

You must be logged in to vote

I solved it using the regular MetadataReader. In the hope that it will help someone after me, I published two tools that extract the data I require.

dotnet tool install --global SourceLinkExtract
dotnet tool install --global SourceSymbolMapper

extract test.pdb meta.json out
mapper meta.json out symbols.json

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ProphetLamb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant