Load Assembly into AppDomain from memory?
So, here's the problem: I have a program that compiles source code into a System.Reflection.Assembly object, and I want to run that on an AppDomain. All of the methods and overloads for loading that Assembly into said AppDomain throw an exception when I try to load the Assembly. Does it absolutely have to be a file, or is there another way to load an assembly into an appdomain? If it'll be necessary, how would you get a byte array from the Assembly object? Any help would be greatly appreciated, reflection has got me bleeding from the eyes here. @_@
You'll need to load it from a file.