You haven't included a reference to the current assembly, which is the assembly declaring Global
. Therefore the compiler has no idea which type you're talking about.
You need to set the ReferencedAssemblies
property in the CompilerParameters
that you're creating.