using Microsoft.AspNetCore.Mvc.ApplicationParts; using Microsoft.Extensions.DependencyInjection; using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared; using Volo.Abp.Modularity; namespace Volo.Abp.AspNetCore.Mvc.PlugIn; [DependsOn(typeof(AbpAspNetCoreMvcUiThemeSharedModule))] public class MyPlungInModule : AbpModule { public override void PreConfigureServices(ServiceConfigurationContext context) { PreConfigure(mvcBuilder => { //Add plugin assembly mvcBuilder.PartManager.ApplicationParts.Add(new AssemblyPart(typeof(MyPlungInModule).Assembly)); //Add CompiledRazorAssemblyPart if the PlugIn module contains razor views. mvcBuilder.PartManager.ApplicationParts.Add(new CompiledRazorAssemblyPart(typeof(MyPlungInModule).Assembly)); }); } }