Assemblies containing dynamic code cannot be unloaded
- Dominant language
- No language data
- Stars
- 4.8k
- Forks
- 6.1k
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 370
Description
It's worth mentioning that assemblies that contain dynamic code (i.e. compiled with the Microsoft.CSharp.RuntimeBinder namespace) cannot be unloaded after such code has been executed because the RuntimeBinder caches the reflection info of the assembly.
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: f3283764-f15a-fa5f-5106-6f294c780f7b
* Version Independent ID: b03cedce-9074-9686-0b31-045b2b4c862d
* Content: [How to use and debug assembly unloadability in .NET Core](https://docs.microsoft.com/en-us/dotnet/standard/assembly/unloadability)
* Content Source: [docs/standard/assembly/unloadability.md](https://github.com/dotnet/docs/blob/main/docs/standard/assembly/unloadability.md)
* Product: **dotnet-fundamentals**
* GitHub Login: @janvorli
* Microsoft Alias: **janvorli**
Contributor guide
Assessment
This issue has not been assessed yet.