In addition to this question I have another,
but due to the complexity I thought I would split them up.
After writing some code using .NET’s CodeDom and the compiler, I was able to load C# assemblies from files at runtime:
//Create provider var provider:CodeDomProvider = new CodeDomProvider.CreateProvider("CSharp"); //Compile C# file at path, with params as compiler parameters var results:CompilerResults = provider.CompileAssemblyFromFile(params, path); //return the compiled assembly return results.CompiledAssembly;
Now thats all good and working, but I was wondering whether I could use the same method to compile UnityScript files.
I have tried using
"UnityScript". Does the UnityScript compiler even integrate into CodeDom?