Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update AssemblyLoadContext.xml
  • Loading branch information
jkotas authored Oct 27, 2019
commit e30881b6c4da8ccb45af341fa38c4ace8efac2cd
2 changes: 1 addition & 1 deletion xml/System.Runtime.Loader/AssemblyLoadContext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
* The implementation of <xref:System.Runtime.Loader.AssemblyLoadContext.Load(System.Reflection.AssemblyName)?displayProperty=nameWithType> can add new dependencies which may need to be isolated to allow different versions to exist. The most natural implementation would place these dependencies in the default context. Careful design can isolate the new dependencies.

* The same assembly is loaded multiple times into different contexts.
* This can lead to confusing error messages, for example "Unable to cast object of type 'Sample.IPlugin' to type 'Sample.IPlugin'."
* This can lead to confusing error messages, for example "Unable to cast object of type 'Sample.Plugin' to type 'Sample.Plugin'."
* Marshaling across isolation boundaries is non-trivial. A typical solution would be to use an interface defined in an assembly which is only loaded into the default load context.

]]></format>
Expand Down