Skip to content

Fix IL3000 single-file publish error - #2205

Merged
waldekmastykarz merged 1 commit into
mainfrom
fix-il3000-single-file-publish
Dec 4, 2026
Merged

waldekmastykarz merged 1 commit into
mainfrom
fix-il3000-single-file-publish

Conversation

@waldekmastykarz

Copy link
Copy Markdown
Collaborator

Fixes the failed release publish run https://github.com/dotnet/dev-proxy/actions/runs/47341394524. Assembly.Location in GetTypeFullNames triggered IL3000 (warnings as errors) under PublishSingleFile. Plugin assemblies are loaded from disk and an empty Location is already handled, so the warning is suppressed on that method. Verified with a single-file self-contained publish.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@waldekmastykarz
waldekmastykarz requested a review from a team as a code owner December 4, 2026 13:21
Copilot AI balanced review requested due to automatic review settings December 4, 2026 13:21

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

No active review issues are recorded for the method-scoped IL3000 suppression in plugin type discovery.

No open issues 🎉

What changed in this PR

Addresses the single-file publish failure by suppressing IL3000 in plugin type discovery.

Changes:

  • Adds a method-scoped suppression to GetTypeFullNames.
  • Documents that plugins load from disk and empty assembly locations already have a fallback.
File Description
DevProxy/​Plugins/​PluginServiceExtensions.cs Adds the IL3000 suppression and its justification.

Review effort: Balanced

@waldekmastykarz
waldekmastykarz merged commit e99d89c into main Dec 4, 2026
9 checks passed
@waldekmastykarz
waldekmastykarz deleted the fix-il3000-single-file-publish branch December 4, 2026 13:28
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.

2 participants