Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

SiamAbdullah/ExtractSourceCodeFromPortablePDB

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Portable PDB

.NET Core introduces a new symbol file (PDB) format - portable PDBs. Unlike traditional PDBs which are Windows-only, portable PDBs can be created and read on all platforms.

Embeded Source Code into PDB

You could embed source code into pdb following ways :

  • Adding EmbedAllSources property into csproj file
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <EmbedAllSources>true</EmbedAllSources>
    [...]
  • Adding Files explicitly via csproj
<ItemGroup>
      <EmbeddedFiles Include="@(Compile) " />
</ItemGroup>

Extracting Source Code from PDB:

dotnet ExtractSourceCodeFromPortablePDB.dll -i <folder path of pdb files> -o <folder path where source code will be saved>

About

Extract embedded source code from pdb

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.