Skip to content

Instantly share code, notes, and snippets.

@xiaomi7732
Created September 28, 2022 22:41
Show Gist options
  • Save xiaomi7732/5cc70ed3811ff660bdf2e0536319f421 to your computer and use it in GitHub Desktop.
Save xiaomi7732/5cc70ed3811ff660bdf2e0536319f421 to your computer and use it in GitHub Desktop.
Get .NET Core Native Symbols

https://learn.microsoft.com/en-us/dotnet/core/diagnostics/trace-perfcollect-lttng#get-symbols-for-the-native-runtime

Hard copy:

  1. install dotnet-symbol

    dotnet tool install -g dotnet-symbol
  2. Download the symbols. If your installed version of the .NET Core runtime is 2.1.0, the command to do this is:

    mkdir mySymbols
    dotnet symbol --symbols --output mySymbols  /usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.0/lib*.so
  3. Copy the symbols to the correct place

    sudo cp mySymbols/* /usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment