Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
a31fee73
Commit
a31fee73
authored
Jan 01, 2020
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 UIModule 加载,里面 assembly 其实是命名空间, dll 去掉 扩展名,就是 程序集
parent
4ad7a230
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
LoadUIModule.cs
Project.FLY.UI.Module/FLY.UI.Module/LoadUIModule.cs
+7
-1
No files found.
Project.FLY.UI.Module/FLY.UI.Module/LoadUIModule.cs
View file @
a31fee73
...
@@ -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
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment