Skip to content

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

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

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.

DCA looks good.

…e and log non-excluded candidates as debug info.

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
@michaelnebel
michaelnebel force-pushed the csharp/moredepmanlogging branch from 6873583 to cb5a682 Compare October 28, 2026 07:42
@michaelnebel michaelnebel added the no-change-note-required This PR does not need a change note label Oct 28, 2026
@michaelnebel
michaelnebel marked this pull request as ready for review October 28, 2026 08:16
@michaelnebel
michaelnebel requested a review from a team as a code owner October 28, 2026 08:16

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

C# no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants