Commit a31fee73 authored by 潘栩锋's avatar 潘栩锋 🚴

修改 UIModule 加载,里面 assembly 其实是命名空间, dll 去掉 扩展名,就是 程序集

parent 4ad7a230
...@@ -10,7 +10,13 @@ namespace FLY.UI.Module ...@@ -10,7 +10,13 @@ namespace FLY.UI.Module
{ {
public class UIModuleParam public class UIModuleParam
{ {
/// <summary>
/// 程序集.dll
/// </summary>
public string dll_filename; public string dll_filename;
/// <summary>
/// 命名空间
/// </summary>
public string assembly_name; public string assembly_name;
public string class_name; public string class_name;
/// <summary> /// <summary>
...@@ -122,7 +128,7 @@ namespace FLY.UI.Module ...@@ -122,7 +128,7 @@ namespace FLY.UI.Module
Assembly assembly=null; Assembly assembly=null;
try try
{ {
assembly = Assembly.Load(mp.assembly_name); assembly = Assembly.Load(Path.GetFileNameWithoutExtension(mp.dll_filename));
} }
catch (Exception e) catch (Exception e)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment