#4528 Add GenerateEmbeddedFilesManifest to the module web project

pull/4543/head
Halil İbrahim Kalkan 5 years ago
parent 047f8907fa
commit 30611e0b94

@ -1,6 +1,5 @@
using Volo.Abp.Application;
using Volo.Abp.Modularity;
using Volo.Abp.VirtualFileSystem;
using Volo.Abp.Authorization;
namespace MyCompanyName.MyProjectName
@ -12,12 +11,6 @@ namespace MyCompanyName.MyProjectName
)]
public class MyProjectNameApplicationContractsModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpVirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<MyProjectNameApplicationContractsModule>("MyCompanyName.MyProjectName");
});
}
}
}

@ -1,6 +1,7 @@
{
"culture": "en",
"texts": {
"ManageYourProfile": "Manage your profile"
"ManageYourProfile": "Manage your profile",
"SamplePageMessage": "A sample page for the MyProjectName module"
}
}

@ -1,6 +1,7 @@
{
"culture": "tr",
"texts": {
"ManageYourProfile": "Profil yönetimi"
"ManageYourProfile": "Profil yönetimi",
"SamplePageMessage": "MyProjectName modulünden örnek bir sayfa"
}
}

@ -8,6 +8,7 @@
<IsPackable>true</IsPackable>
<OutputType>Library</OutputType>
<RootNamespace>MyCompanyName.MyProjectName.Web</RootNamespace>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
</PropertyGroup>
<ItemGroup>
@ -19,6 +20,10 @@
<ProjectReference Include="..\MyCompanyName.MyProjectName.HttpApi\MyCompanyName.MyProjectName.HttpApi.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="3.1.5" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Pages\**\*.css" />
<EmbeddedResource Include="Pages\**\*.js" />

@ -41,7 +41,7 @@ namespace MyCompanyName.MyProjectName.Web
Configure<AbpVirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<MyProjectNameWebModule>("MyCompanyName.MyProjectName.Web");
options.FileSets.AddEmbedded<MyProjectNameWebModule>();
});
context.Services.AddAutoMapperObjectMapper<MyProjectNameWebModule>();

@ -1,6 +1,9 @@
@page
@using Microsoft.Extensions.Localization
@using MyCompanyName.MyProjectName.Localization
@model MyCompanyName.MyProjectName.Web.Pages.MyProjectName.IndexModel
@inject IStringLocalizer<MyProjectNameResource> L
@{
}
<h1>MyProjectName</h1>
<p>A sample page for the MyProjectName module.</p>
<p>@L["SamplePageMessage"]</p>

Loading…
Cancel
Save