oakio
oakio

Reputation: 1898

Compile collectible assembly from CodeCompileUnit

How I can compile collectible assembly from CodeCompileUnit?

Upvotes: 2

Views: 295

Answers (1)

svick
svick

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

Related Questions