Reputation: 1898
How I can compile collectible assembly from CodeCompileUnit
?
Upvotes: 2
Views: 295
Reputation: 244948
From the page you linked:
Reflection emit is the only mechanism that is supported for loading collectible assemblies. Assemblies that are loaded by any other form of assembly loading cannot be unloaded.
Since CodeDOM isn't using Reflection.Emit, I think that means you can't create collectible assembly from CodeCompileUnit
.
Upvotes: 1