Skip to content

C#: Add some more logging to the Dependency Manager. - #22889

Draft
michaelnebel wants to merge 3 commits into
github:mainfrom
michaelnebel:csharp/moredepmanlogging
Draft

michaelnebel wants to merge 3 commits into
github:mainfrom
michaelnebel:csharp/moredepmanlogging

Conversation

@michaelnebel

@michaelnebel michaelnebel commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Adding some more logging information that can help debug reported issues based on the logs.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Dependency-selection logic is unchanged, and the remaining log-wording suggestions are non-blocking.

2 open issues
What changed in this PR

Adds diagnostics to the C# extractor’s Dependency Manager to make dependency discovery easier to troubleshoot.

Changes:

  • Always log the legacy NuGet restore count, plus candidate DLL totals and debug-level paths.
  • Log file-scan completion and detected project and framework features.
File Description
csharp/​extractor/​Semmle.Extraction.CSharp.DependencyFetching/​NugetPackageRestorer.cs Logs restore counts and candidate DLL details.
csharp/​extractor/​Semmle.Extraction.CSharp.DependencyFetching/​FileContent.cs Logs scan completion and detected features.

Review effort: Max

Comment thread csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/FileContent.cs Outdated

This branch has not been deployed

No deployments
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.

2 participants