I have a solution that has many different RCL projects (Main solution is.Net 8 Blazor using InteractiveServer) Each one of the RCL’s has pages in it. I define a page as a component with @page "/someurl"
You used to just load the assemblies from the other projects via the AdditionalAssemblies
property on the Router like so
<Router
AppAssembly="@typeof(App).Assembly"
AdditionalAssemblies="{ Load Them Here}">
<Found Context="routeData">
<AuthorizeRouteView RouteData="routeData">
<NotAuthorized>
<RedirectToLogin />
</NotAuthorized>
</AuthorizeRouteView>
<FocusOnNavigate RouteData="routeData" Selector="h1"/>
</Found>
</Router>
However, that no longer works? I looked on Github and a number of people had the same issue, with a few comments from Microsoft developers saying to load the assemblies like so and it will work
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode()
.AddAdditionalAssemblies(ExtensionManager.GetAssemblies());
Well I have tried both and neither way works? When I browse to the URL I get a 404 (page can’t be found)
Any idea how to get this working as this is a huge problem for me 🙁