Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

How does /discover in Maui Hybrid App route to the Class Library? #151

Answered by dirraj
dirraj asked this question in Q&A
Discussion options

You must be logged in to vote

To answer my own question, reading on Blazor Routing I learned of the AdditionalAssemblies attribute on the Router configuration in Main.Razor of the MAUI Blazor app (MobileBlazor).

You can see this in MobileBlazor's Main.Razor. By referencing the Razor Class Library (web), routes from that assembly are now included in MAUI.

<Router AppAssembly="@GetType().Assembly" AdditionalAssemblies="new[] { typeof(MainLayout).Assembly}">

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dirraj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant