Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

InteractiveWebAssemblyRenderMode not working when navigate to shared library page

$
0
0

I am using Blazor Web App template introduced in .Net Core 8.0

I want to render Blazor pages as InteractiveWebAssemblyRenderMode that are shared between different projects. So I created a shared Razor class library.

It works fine when I use InteractiveAutoRenderMode or move the .razor file to .Client project, but as soon as I move the .razor file to shared project it starts giving me error. Root component type 'Frontend.Interface.Pages.Job' could not be found in the assembly 'Frontend.Interface.Pages'.

As long as I copy all the pages into the *.Client project, everything works fine. (Server rendering and Client rendering)How can I tell the *.Client project that all pages are stored in a different project? Is there anything like this AdditionalAssemblies=new[] { typeof(MyPage).Assembly}?Or is it not possible at the moment?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>