c# - CompileAssemblyFromSource + Obfuscation = don't work -
i have working compileassemblyfromsource code. when use code protector redgate smartassembly or themida it's stop working , error "could not load file or assembly or 1 of dependencies". can please me that? using system; using system.codedom.compiler; using system.reflection; using microsoft.csharp; namespace stringtocode { public class program { public static int q = 0; static void main(string[] args) { try { string source = "namespace stringtocode { public class fooclass { public void execute() { program.q = 1; } } }"; console.writeline("q=" + q); using (var foo = new csharpcodeprovider()) { var parameters = new compilerparameters(); parameters.generateinmemory = true; foreach (assembly assembly in appdomain.currentdomain.getassemblies()) { ...