Exclude abstract BundleContributors in BundlingService

pull/13266/head
enisn 3 years ago
parent 60e964673c
commit e7262129ce

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

Loading…
Cancel
Save