[Blazor Web Assembly] Lazy Loading .resources.dll

Yiannhs Rakitzopoulos 1 Reputation point
2022-06-15T09:49:02.06+00:00

Hello,
I have a Blazor WASM project 'Project A' that Lazy Loads a Razor Class Library project 'Project B'.

Project B contains some resources (.resx files) with the following folder structure

-Project B  
    - //  
    -Resources (directory)  
        - MyResources.resx (Public)  
        - MyResources.el-GR.resx (No Code generation)  
    - //  

When I build and run Project A, the .dll containing Project's B resources is loaded as shown in the following pictures:
211613-rana.png211681-dlls.png

My issue is that I can't figure out why when I publish Project A, the .dll containing Project's B resources is not loaded as a satellite assembly, therefore the resources cannot be accessed.

Published blazor.boot.json
211614-published.png

Visual Studio 22
Dotnet version: 6.0.300

Developer technologies | .NET | Blazor
Developer technologies | ASP.NET | Other
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.