Hello
bellow is select sample of code im using to dynamicaly load
assembley's and it works, but the assembley.loadfile requires that i
use a absolute directory path.
Is there anyway i can use a relative file path. I just want to access
the dll in subdirectory "deviceinterface" to where the application is
located. (regardeless where the app is located)
any help appreciated
thanks
Peted
DirectoryInfo devDir;
FileInfo[] iplDevFiles;
/* list all device interfaces in the directory for user access */
devDir = new DirectoryInfo(@"C:\Documents and
Settings\spock\My Documents\Visual Studio
2005\Projects\IPLinkerator\IPLinkerator\bin\Debug\ DeviceInterface\");
iplDevFiles = devDir.GetFiles("*.dll");
// Dynamically load the selected assembly.
deviceInterfaceAssembly = Assembly.LoadFile(devDir +
devicefile);