Skip to content

chore: drop System.Runtime.Loader package ref (in-box on net8.0)#1787

Merged
JamieMagee merged 1 commit into
mainfrom
cleanup/drop-transitive-packages
Apr 17, 2026
Merged

chore: drop System.Runtime.Loader package ref (in-box on net8.0)#1787
JamieMagee merged 1 commit into
mainfrom
cleanup/drop-transitive-packages

Conversation

@JamieMagee
Copy link
Copy Markdown
Member

@JamieMagee JamieMagee commented Apr 17, 2026

What

Removes the explicit PackageReference for System.Runtime.Loader from Microsoft.ComponentDetection.Orchestrator and its central PackageVersion entry from Directory.Packages.props. The type lives in the BCL on net8.0; the explicit ref is noise and occasionally triggers spurious vulnerability alerts.

Why

The explicit reference dates from the netstandard / netcoreapp3.1 era when System.Runtime.Loader was an out-of-band package. On net8.0 it ships with the runtime.

Note

The original plan also intended to drop explicit System.Memory references from net8.0-targeted projects, but a closer look showed System.Memory is only referenced by Microsoft.ComponentDetection.Contracts.csproj, which still targets netstandard2.0 — so it must stay. There were no net8.0 System.Memory references to remove. This PR therefore only covers System.Runtime.Loader.

Verified

`dotnet build` (warnings-as-errors) succeeds with zero warnings/errors.

Part 2 of a 6-PR cleanup series removing .NET-Framework-era anachronisms.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes legacy explicit NuGet references that are now provided by the .NET 8 BCL, reducing noise and avoiding spurious vulnerability alerts in this repo’s build-time dependency scanning tooling.

Changes:

  • Removed System.Runtime.Loader PackageReference from Microsoft.ComponentDetection.Orchestrator (net8.0 via repo defaults).
  • Removed the centrally-managed System.Runtime.Loader PackageVersion entry.
Show a summary per file
File Description
src/Microsoft.ComponentDetection.Orchestrator/Microsoft.ComponentDetection.Orchestrator.csproj Drops the explicit System.Runtime.Loader package reference from Orchestrator.
Directory.Packages.props Removes central version pin for System.Runtime.Loader after reference removal.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 1

Comment thread Directory.Packages.props
@JamieMagee JamieMagee changed the title chore: drop transitive package refs built into net8.0 chore: drop System.Runtime.Loader package ref (in-box on net8.0) Apr 17, 2026
System.Memory removed from net8.0-targeted projects (kept on Contracts which targets netstandard2.0). System.Runtime.Loader is in-box on net8.0 — removed from Orchestrator.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@JamieMagee JamieMagee force-pushed the cleanup/drop-transitive-packages branch from b4ba819 to 90f7601 Compare April 17, 2026 19:54
@JamieMagee JamieMagee enabled auto-merge (squash) April 17, 2026 19:59
@JamieMagee JamieMagee merged commit 6335b25 into main Apr 17, 2026
23 of 24 checks passed
@JamieMagee JamieMagee deleted the cleanup/drop-transitive-packages branch April 17, 2026 20:01
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.0%. Comparing base (79997f5) to head (90f7601).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff      @@
##   main   #1787   +/-   ##
============================
============================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants