Warning!
Unfortunately, the article Cristian referenced is all wrong. It has a fundamental flaw — a memory leak due to the fact that it is impossible to unload a loaded assembly. I added my comment to the article warning everyone against using it.
Also, one of the members insists that this article plagiarizes his work. Please look at the comment to the article: one of the commenter offered much better article:
http://www.west-wind.com//presentations/dynamicCode/DynamicCode.htm[
^].
Also, I explain the problem of unloading and describe the solution using
System.AppDomain
which is probably the only correct approach. Please see:
code generating using CodeDom[
^],
Create WPF Application that uses Reloadable Plugins...[
^].
—SA