Why is Assembly.LoadFrom() static method removed ? and how do I load external .dll using Assembly.Load() instead ? This code throws exception.
Assembly a = null;
AssemblyName aName = new AssemblyName(@"C:\MyAsssembly\ClassLibrary1.dll");
try
{
a = Assembly.Load(aName);
}
catch (Exception e)
{
Console.WriteLine("FileNotFound!");
}
Console.Read();
}
Aucun commentaire:
Enregistrer un commentaire