I realize there is a somewhat related thread on this here: http://stackoverflow.com/questions/22012/loading-assemblies-and-its-dependencies
But I am modifying something and this doesn't exactly apply.
string path = Path.GetDirectoryName( pathOfAssembly );
Environment.CurrentDirectory = path;
Assembly.Load(Path.GetFileNameWithoutExtension(pastOfAssembly));
Is there any really reason you would do it like this? Wouldn't it make more sense to just use:
Assembly.LoadFile(pathOfAssembly);
Any insight would be greatly appreciated.