Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Render a page at run time from dynamically loaded assembly in Blazor app

I am creating a modular Blazor app, which dynamically loads all the external assemblies (i.e. modules) from a location.

Then I want to show module names in NavMenu of the Blazor app.

When user clicks on a module name, then browser renders a page/component from that module with in Index page of my Blazor app.

Need help in doing that

like image 518
user2109347 Avatar asked Sep 18 '19 09:09

user2109347


Video Answer


1 Answers

Lazy loading assemblies is not yet available for blazor. All assemblies your project depends on will be loaded on start.
This feature should be implemented in .Net 5 Release https://github.com/aspnet/AspNetCore/issues/5465

Update Blazor 5 Preview

Mike S. comments with the doc url to the Lazy load assemblies in ASP.NET Core Blazor WebAssembly.

like image 111
agua from mars Avatar answered Oct 28 '22 08:10

agua from mars