Skip to content

Fix net462 build - #68

Closed
momo-the-monster wants to merge 1 commit into
mainfrom
fix/issue-67-net462-lambda-shadow
Closed

Fix net462 build#68
momo-the-monster wants to merge 1 commit into
mainfrom
fix/issue-67-net462-lambda-shadow

Conversation

@momo-the-monster

Copy link
Copy Markdown
Contributor

Oops, this lambda was reusing the OSCQueryServiceProfile local above.

Fixes #67

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.

Pull request overview

Resolves the net462 build failure by eliminating a local-variable shadowing conflict in MeaModDiscovery.AddMatchedService, aligning behavior across target frameworks.

Changes:

  • Renamed LINQ lambda parameters in two .All(...) checks to avoid shadowing the enclosing OSCQueryServiceProfile p local.
  • Keeps runtime behavior unchanged while restoring compatibility with older C# language rules used by net462.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@momo-the-monster

Copy link
Copy Markdown
Contributor Author

Fixed by #65

@momo-the-monster
momo-the-monster deleted the fix/issue-67-net462-lambda-shadow branch June 27, 2026 02:14
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

net462 build fails: CS0136 variable shadowing in MeaModDiscovery

2 participants