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

Page NOT in the shared project does not show correctly in browser

$
0
0

I am trying to create a project in .net 9 and Blazor using the ".net Maui Blazor and Web App" template in Visual Studio.

I have created the project, and run it successfully, and I can see the project run as a Windows App, or set the Start Up project to the web project, and then run it in a browser.

So all good so far.

Now I add a test page to the Web Project called "Test". I put it in the Web Project because I do NOT want it to be shared with the Maui project. I then run the project again, and type in the address of the test page. The "Test" page is displayed correctly for 1 second, and then disappears with a "not found" message.

If I add a test page to the Shared Directory, it displays normally.

I have been unable to resolve this. I have created a Test Repo here: https://github.com/gregoryagu/MauiApp5

What do I need to do to get the Test page to display normally?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



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