G
Guest
I have the following code...
string js = ReadFile(path);
JScriptCodeProvider p = new JScriptCodeProvider();
CompilerParameters cp = new CompilerParameters();
cp.GenerateExecutable = false;
cp.GenerateInMemory = true;
cp.CompilerOptions = "/t:library";
CompilerResults r = p.CompileAssemblyFromSource(cp, js);
System.Reflection.Assembly a = r.CompiledAssembly; // File not found
exception
What am I doing wrong. The error happens no matter which javascript file I
load so I am pretty surte it is not a problem in the script.
Thanks
string js = ReadFile(path);
JScriptCodeProvider p = new JScriptCodeProvider();
CompilerParameters cp = new CompilerParameters();
cp.GenerateExecutable = false;
cp.GenerateInMemory = true;
cp.CompilerOptions = "/t:library";
CompilerResults r = p.CompileAssemblyFromSource(cp, js);
System.Reflection.Assembly a = r.CompiledAssembly; // File not found
exception
What am I doing wrong. The error happens no matter which javascript file I
load so I am pretty surte it is not a problem in the script.
Thanks