Skip to content

docs: document FileNotFoundException passthrough behavior in AssemblyLoadContext resolution chain#12419

Merged
elinor-fung merged 2 commits intomainfrom
copilot/update-documentation-behaviour
Mar 19, 2026
Merged

docs: document FileNotFoundException passthrough behavior in AssemblyLoadContext resolution chain#12419
elinor-fung merged 2 commits intomainfrom
copilot/update-documentation-behaviour

Conversation

Copy link
Contributor

Copilot AI commented Mar 18, 2026

Per dotnet/runtime#1025: a FileNotFoundException thrown from AssemblyLoadContext.Load or a Resolving handler is treated as "not found" and the resolution chain continues. Any other exception type stops it immediately.

Changes

  • AssemblyLoadContext.Load remarks[!NOTE] clarifying that FileNotFoundException lets the chain continue (Resolving and AppDomain.AssemblyResolve still fire); any other exception stops it.
  • AssemblyLoadContext.Resolving event remarks[!NOTE] clarifying that a FileNotFoundException from a handler still allows AppDomain.AssemblyResolve to fire; any other exception stops propagation.

Copilot AI and others added 2 commits March 18, 2026 20:43
…xt resolution chain

Co-authored-by: elinor-fung <47805090+elinor-fung@users.noreply.github.com>
…steps 2-4

Co-authored-by: elinor-fung <47805090+elinor-fung@users.noreply.github.com>
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Mar 18, 2026
@elinor-fung elinor-fung marked this pull request as ready for review March 19, 2026 17:48
@elinor-fung elinor-fung requested a review from a team as a code owner March 19, 2026 17:48
Copilot AI review requested due to automatic review settings March 19, 2026 17:48
Copy link
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

Documents AssemblyLoadContext assembly resolution behavior where FileNotFoundException is treated as “not found” and resolution continues through later extension points, while other exception types terminate resolution.

Changes:

  • Adds a note to AssemblyLoadContext.Load(AssemblyName) remarks explaining FileNotFoundException passthrough vs. other exceptions halting resolution.
  • Adds a note to AssemblyLoadContext.Resolving remarks explaining how FileNotFoundException affects continued resolution to AppDomain.AssemblyResolve.

You can also share your feedback on Copilot code review. Take the survey.

@elinor-fung elinor-fung merged commit 659f623 into main Mar 19, 2026
12 checks passed
@elinor-fung elinor-fung deleted the copilot/update-documentation-behaviour branch March 19, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants