Hello. i want to compile c# code on the fly with assembly reference.
I use CSharpCodeProvider and CompilerParameters to pass reference of the source code but i must reference the assemblies that i load in memory of application domain.
Is possibile to change the Compiler class to accept list of istance of Assembly class and not a list of string of assembly files?
This a example of use of configuration class:
[login to view URL] parameters = new CompilerParameters([login to view URL]())
{
GenerateExecutable = false,
GenerateInMemory=true,
OutputAssembly = nameAssembly,
ReferencedAssemblies = new [login to view URL](){ "[login to view URL]"};
};
Therefore i want to load [login to view URL] assembly from memory and not from local disk.