in a web app developed with ABP v8.0.2 we are trying to customize the LeptonXLite theme for the login page and the app layout. We want to customize the login page and the page layout of the entire web app.
We applied the customizations, that work fine when the web app is running from VisualStudio, but when we build and deploy in production on IIS, the customizations disappear and the default login page and default layout is shown.
Below what we tried:
We copied the source code of the LeptonXLite theme in the web project: folder structure
We customized the layout in: Themes/LeptonXLite/Layouts/Application.cshtml
In the web project we added Pages/Account/Login.cshtml, copied the source and customized it
In WebModule.ConfigureServices we added:
Configure<AbpRazorTemplateCSharpCompilerOptions>(options =>
{
options.References.Add(MetadataReference.CreateFromFile(typeof(OurWebModule).Assembly.Location));
});
Configure<AbpVirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<ProjectWebModule>("OurRootNamespace");
});
- In the web project config we added:
...
<PropertyGroup>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
</PropertyGroup>
...
<ItemGroup>
<PackageReference Include="Volo.Abp.TextTemplating.Razor" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="8.0.0" />
</ItemGroup>
...
<ItemGroup>
<EmbeddedResource Include="Themes\**\*.*" />
<Content Remove="Themes\**\*.*" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Pages\Account\**\*.*" />
<Content Remove="Pages\Account\**\*.*" />
</ItemGroup>
- We have cleared the cache on the browser and in IIS with application pool -> Recycle
What are we missing?
Thank you