把你的代码贴出来 我用1_a.dll命名的程序集 能成功加载获得Assembly对象
string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "1_a.dll");
Assembly asm = Assembly.LoadFile(path);
for (int i = 0; i < asm.GetTypes().Length;i++ )
{
Console.WriteLine(asm.GetTypes()[i].Name);
} |
|