Skip to content

Deduplicate and expand compiler references to resolve conflict on mod - #5

Open
leonardo-spy wants to merge 2 commits into
BlackLabelHQ:masterfrom
leonardo-spy:bugfix/adjust-references-from-mods
Open

Deduplicate and expand compiler references to resolve conflict on mod#5
leonardo-spy wants to merge 2 commits into
BlackLabelHQ:masterfrom
leonardo-spy:bugfix/adjust-references-from-mods

Conversation

@leonardo-spy

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings August 3, 2026 20:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Not ready to approve

The new runtime-directory reference scan can still introduce duplicate assembly identities and currently swallows all exceptions, which can mask real failures.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

This PR updates the mod compilation pipeline’s Roslyn reference collection so mod builds have a more complete (and less duplicated) set of MetadataReferences, helping avoid reference-resolution conflicts during mod compilation.

Changes:

  • Deduplicates assembly file references gathered from AppDomain.CurrentDomain.GetAssemblies() via a HashSet.
  • Expands reference discovery by scanning the .NET runtime directory for additional managed *.dll files.
File summaries
File Description
RecompOne.Runtime/Modding/ModCompiler.cs Enhances and deduplicates the Roslyn reference list used for runtime mod compilation.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment thread RecompOne.Runtime/Modding/ModCompiler.cs
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