Browse Source

Merge pull request #13266 from abpframework/enisn/exclude-abstract-bundlecontributors

Exclude abstract BundleContributors from `abp bundle` command
pull/13278/head
Enis Necipoglu 4 years ago
committed by GitHub
parent
commit
9271edc99c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs

@ -229,7 +229,7 @@ public class BundlingService : IBundlingService, ITransientDependency
{ {
var bundleContributors = module.Assembly var bundleContributors = module.Assembly
.GetTypes() .GetTypes()
.Where(t => t.IsAssignableTo<IBundleContributor>()) .Where(t => !t.IsAbstract && !t.IsInterface && t.IsAssignableTo<IBundleContributor>())
.ToList(); .ToList();
if (bundleContributors.Count > 1) if (bundleContributors.Count > 1)

Loading…
Cancel
Save