using System; using System.Reflection; using Microsoft.Extensions.DependencyInjection; using Volo.Abp.AspNetCore.Mvc.Bundling; using Volo.Abp.Modularity; using Volo.Abp.VirtualFileSystem; using Volo.Abp.VirtualFileSystem.Embedded; namespace Volo.Abp.AspNetCore.Mvc { [DependsOn(typeof(AbpAspNetCoreMvcModule))] public class AbpAspNetCoreMvcUiModule : AbpModule { public override void ConfigureServices(IServiceCollection services) { services.AddAssemblyOf(); services.Configure(options => { options.FileSets.Add( new EmbeddedFileSet( "/", GetType().GetTypeInfo().Assembly, "Volo.Abp.AspNetCore.Mvc" ) ); }); services.Configure(options => { options.ScriptBundles.Add("GlobalScripts", new[] { "/libs/abp/abp.js?_v" + DateTime.Now.Ticks }); }); } } }