Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
丁松杰
/
Pole
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d4fa1681
authored
Feb 20, 2020
by
dingsongjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 字段名称
parent
de898d8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
Pole.sln
src/Pole.Core/Utils/AssemblyHelper.cs
Pole.sln
View file @
d4fa1681
...
...
@@ -51,7 +51,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pole.Core.Test", "test\Pole
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pole.EventStorage.PostgreSql", "src\Pole.EventStorage.PostgreSql\Pole.EventStorage.PostgreSql.csproj", "{548EFDBB-252F-48DD-87F4-58ABFBD4963C}"
EndProject
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
}") = "Pole.Orleans.Provider.EntityframeworkCore", "src\Pole.Orleans.Provider.EntityframeworkCore\Pole.Orleans.Provider.EntityframeworkCore.csproj", "{0DA75F4A-BF47-4B52-B932-48BB6A709934}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556
}") = "Pole.Orleans.Provider.EntityframeworkCore", "src\Pole.Orleans.Provider.EntityframeworkCore\Pole.Orleans.Provider.EntityframeworkCore.csproj", "{0DA75F4A-BF47-4B52-B932-48BB6A709934}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
...
...
src/Pole.Core/Utils/AssemblyHelper.cs
View file @
d4fa1681
...
...
@@ -10,15 +10,15 @@ namespace Pole.Core.Utils
{
public
class
AssemblyHelper
{
private
static
IList
<
Assembly
>
A
ssemblies
;
private
static
IList
<
Assembly
>
a
ssemblies
;
public
static
IList
<
Assembly
>
GetAssemblies
(
ILogger
logger
=
default
)
{
if
(
A
ssemblies
!=
null
)
if
(
a
ssemblies
!=
null
)
{
return
A
ssemblies
;
return
a
ssemblies
;
}
var
libs
=
DependencyContext
.
Default
.
CompileLibraries
.
Where
(
lib
=>
!
lib
.
Serviceable
&&
!
lib
.
Name
.
StartsWith
(
"Microsoft"
)
&&
!
lib
.
Name
.
StartsWith
(
"System"
));
A
ssemblies
=
libs
.
Select
(
lib
=>
a
ssemblies
=
libs
.
Select
(
lib
=>
{
try
{
...
...
@@ -31,7 +31,7 @@ namespace Pole.Core.Utils
return
default
;
}
}).
Where
(
assembly
=>
assembly
!=
default
).
ToList
();
return
A
ssemblies
;
return
a
ssemblies
;
}
}
}
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