|
|
@ -50,7 +50,7 @@ namespace BO.Utils |
|
|
{ |
|
|
{ |
|
|
var first = roleToAssemblies.FirstOrDefault(x => x.Item1 == role); |
|
|
var first = roleToAssemblies.FirstOrDefault(x => x.Item1 == role); |
|
|
if (first == null) |
|
|
if (first == null) |
|
|
throw new Exception("未注册的角色"); |
|
|
|
|
|
|
|
|
throw new Exception("未注册的角色:"+role); |
|
|
#if DEBUG
|
|
|
#if DEBUG
|
|
|
var filePath = string.Format("{0}.dll", first.Item2); |
|
|
var filePath = string.Format("{0}.dll", first.Item2); |
|
|
#else
|
|
|
#else
|
|
|
|