Skip to content

Conversation

@PrzemyslawKlys
Copy link
Member

Summary

  • prevent duplicate assembly loads when scanning binaries by preferring module assemblies
  • gracefully handle already loaded assemblies in MetadataLoadContext
  • add regression test for duplicate assembly handling

Testing

  • pwsh -NoLogo -Command "Install-PackageProvider -Name NuGet -Scope CurrentUser -Force; Register-PSRepository -Default; Install-Module Pester -Scope CurrentUser -Force; Import-Module Pester; Invoke-Pester" (failed: No match was found for the specified search criteria for the provider 'NuGet')

https://chatgpt.com/codex/tasks/task_e_68985f44e9ac832e9ab45d13b5eadfc5

@PrzemyslawKlys PrzemyslawKlys merged commit fb95b3c into master Aug 10, 2025
3 checks passed
@PrzemyslawKlys PrzemyslawKlys deleted the fix-assembly-loading-issue-in-ps-7+ branch August 10, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants