wal has a good point in calling the GetType
method, but to answer the question:
string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "abc.dll"); Assembly testAssembly = Assembly.LoadFile(path);
If AppDomain.CurrentDomain
not reliable, then in a slightly more confusing way:
string path = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "abc.dll");
source share