I my working on a WPF application where i load an EXE or dll.
byte rawAssembly = loadFile(gamePath);
gameAssembly = Assembly.Load(rawAssembly);
static byte loadFile(string filename)
FileStream fs = new FileStream(filename, FileMode.Open);
byte buffer = new byte[(int)fs.Length];
fs.Read(buffer, 0, buffer.Length);
After reading, i set some of the properties of loaded assembly and than run it in separate Appdomain.
But the code of this current EXE/DLL get the path of my parent application debug folder when i want to get this current EXE path.
This is the code in my EXE.
Its not giving the path of t
View Complete Post