Skip to content

Add NuGet symbol package support and SourceLink for debugging - #1

Merged
ihorleleka merged 1 commit into
mainfrom
codex/add-debuggable-symbols-to-nuget-library
Mar 19, 2026
Merged

ihorleleka merged 1 commit into
mainfrom
codex/add-debuggable-symbols-to-nuget-library

Conversation

@ihorleleka

Copy link
Copy Markdown
Owner

Motivation

  • Enable consumers to debug the library when installed from NuGet by shipping portable PDBs and a symbol package.
  • Improve source stepping by publishing repository metadata and embedding untracked sources so debuggers can resolve source files.

Description

  • Update Code/IL.InMemoryCacheProvider.csproj to enable symbol packaging by adding IncludeSymbols, SymbolPackageFormat set to snupkg, and DebugType set to portable.
  • Add PublishRepositoryUrl and EmbedUntrackedSources to include repository metadata and untracked sources in the package.
  • Add Microsoft.SourceLink.GitHub as a PackageReference to enable Source Link support for stepping into package source.

Testing

  • Attempted dotnet test IL.InMemoryCacheProvider.slnx, which could not run because the dotnet SDK is not installed in this environment (failed).
  • Attempted dotnet pack Code/IL.InMemoryCacheProvider.csproj -c Release -o artifacts, which could not be executed in this environment and did not complete (failed).

Codex Task

@ihorleleka
ihorleleka merged commit 877ec6f into main Mar 19, 2026
1 check passed
@ihorleleka
ihorleleka deleted the codex/add-debuggable-symbols-to-nuget-library branch March 19, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant