Repository navigation
Add a NuGet package README for Microsoft.DiaSymReader - #469
Open
officialasishkumar wants to merge 1 commit into
Open
officialasishkumar wants to merge 1 commit into
officialasishkumar wants to merge 1 commit into
Conversation
The Microsoft.DiaSymReader package doesn't ship a readme, so nuget.org shows no usage information for it, and the question raised in dotnet#291 of how to examine a Windows PDB with this library has no documented answer. Add src/Microsoft.DiaSymReader/PACKAGE.md, following the PACKAGE.md layout used by dotnet/runtime libraries, and pack it as the package readme via PackageReadmeFile. The readme explains that the package only defines the interfaces and where the implementations come from (Microsoft.DiaSymReader.Native for Windows PDBs, Microsoft.DiaSymReader.PortablePdb for Portable PDBs), and recommends System.Reflection.Metadata for new code that reads Portable PDBs. It includes a complete example that: - opens a Windows PDB with SymUnmanagedReaderFactory.CreateReader, - implements ISymReaderMetadataProvider on top of System.Reflection.Metadata, - enumerates documents, sequence points and local variable scopes using the SymUnmanagedExtensions helpers, and - releases the reader with ISymUnmanagedDispose.Destroy. It also documents where the factory looks for the native library, the UseAlternativeLoadPath and UseComRegistry options, and how PDBs are written with SymUnmanagedWriterFactory. Fixes dotnet#291
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Microsoft.DiaSymReader package doesn't ship a readme, so nuget.org shows no usage information for it, and #291 asks how to use the library to examine a Windows PDB.
This adds
src/Microsoft.DiaSymReader/PACKAGE.md, laid out like thePACKAGE.mdfiles in dotnet/runtime libraries, and packs it as the package readme viaPackageReadmeFile. It covers:SymUnmanagedReaderFactory, implementsISymReaderMetadataProvideron top of System.Reflection.Metadata, prints documents, sequence points and local variable scopes using theSymUnmanagedExtensionshelpers, and releases the reader withISymUnmanagedDispose.DestroyMicrosoft.DiaSymReader.Native.{platform}.dll, theUseAlternativeLoadPathandUseComRegistryoptions, and a short note on writing PDBs withSymUnmanagedWriterFactoryI packed the library locally and checked that
PACKAGE.mdends up at the package root with<readme>PACKAGE.md</readme>in the nuspec. I also built the sample against the resulting package and ran itsISymReaderMetadataProvideragainst a real assembly.If #454 lands, the sentence about where the Windows implementation comes from should be updated the same way as in README.md.
Fixes #291