cmskit admin remove redundant dependency

pull/5141/head^2
Yunus Emre Kalkan 4 years ago
parent e98ebc3831
commit 1bdf27765e

@ -6,6 +6,7 @@ namespace Volo.CmsKit.Admin
{
[DependsOn(
typeof(CmsKitAdminApplicationContractsModule),
typeof(AbpAutoMapperModule),
typeof(CmsKitCommonApplicationModule)
)]
public class CmsKitAdminApplicationModule : AbpModule

@ -1,14 +0,0 @@
using AutoMapper;
namespace Volo.CmsKit.Admin.Web
{
public class CmsKitAdminWebAutoMapperProfile : Profile
{
public CmsKitAdminWebAutoMapperProfile()
{
/* You can configure your AutoMapper mapping configuration here.
* Alternatively, you can split your mapping configurations
* into multiple profile classes for a better organization. */
}
}
}

@ -2,7 +2,6 @@
using Microsoft.Extensions.DependencyInjection;
using Volo.CmsKit.Admin.Web.Menus;
using Volo.Abp.AspNetCore.Mvc.Localization;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;
using Volo.Abp.UI.Navigation;
using Volo.Abp.VirtualFileSystem;
@ -44,13 +43,7 @@ namespace Volo.CmsKit.Admin.Web
Configure<AbpVirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<CmsKitAdminWebModule>();
});
context.Services.AddAutoMapperObjectMapper<CmsKitAdminWebModule>();
Configure<AbpAutoMapperOptions>(options =>
{
options.AddMaps<CmsKitAdminWebModule>(validate: true);
options.FileSets.AddEmbedded<CmsKitAdminWebModule>("Volo.CmsKit.Admin.Web");
});
Configure<RazorPagesOptions>(options =>

@ -13,7 +13,6 @@
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AutoMapper\Volo.Abp.AutoMapper.csproj" />
<ProjectReference Include="..\Volo.CmsKit.Common.Web\Volo.CmsKit.Common.Web.csproj" />
<ProjectReference Include="..\Volo.CmsKit.Admin.HttpApi\Volo.CmsKit.Admin.HttpApi.csproj" />
</ItemGroup>

@ -44,7 +44,7 @@ namespace Volo.CmsKit.Public.Web
Configure<AbpVirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<CmsKitPublicWebModule>();
options.FileSets.AddEmbedded<CmsKitPublicWebModule>("Volo.CmsKit.Public.Web");
});
context.Services.AddAutoMapperObjectMapper<CmsKitPublicWebModule>();

Loading…
Cancel
Save