Skip to content

Commit

Permalink
Fix assembly chargé plusieurs fois en custom
Browse files Browse the repository at this point in the history
  • Loading branch information
JabX committed Sep 4, 2024
1 parent c75a768 commit 0c13985
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TopModel.Generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ void HandleFile(FileInfo file)
.GetFiles("TopModel.Generator.*.dll", SearchOption.AllDirectories)
.Where(a => a.FullName.Contains(framework) && a.Name != "TopModel.Generator.Core.dll")
.DistinctBy(a => a.Name)
.Where(f => !AppDomain.CurrentDomain.GetAssemblies().Any(a => a.ManifestModule.Name == f.Name))
.Select(f => Assembly.LoadFrom(f.FullName))
.SelectMany(a => a.GetExportedTypes())
.Where(t => GetIGenRegInterface(t) != null));
Expand Down

0 comments on commit 0c13985

Please sign in to comment.