while the dll is created dynamically in the solution, set the copmileroptions property to "generateinmemory = true". After creating the dll in this way, the dynamically created dll can be used in the propoint sharepoint without deploying the dll in the GAC or by adding the dll name to the safecontrollist list in the sharepoint web.config web site.
source
share