mirror of https://github.com/abpframework/abp.git
7 changed files with 33 additions and 13 deletions
@ -0,0 +1,15 @@ |
|||
using System; |
|||
using System.Linq; |
|||
using System.Reflection; |
|||
|
|||
namespace Volo.Abp.Modularity; |
|||
|
|||
public static class AbpModuleDescriptorExtensions |
|||
{ |
|||
public static Assembly[] GetAdditionalAssemblies(this IAbpModuleDescriptor module) |
|||
{ |
|||
return module.AllAssemblies.Length <= 1 |
|||
? Array.Empty<Assembly>() |
|||
: module.AllAssemblies.Where(x => x != module.Assembly).ToArray(); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue