首页 > 解决方案 > Blazor Web Assembly App with ASP .NET Core Hosted Nav Menu Not Rendered

问题描述

I just created a new Blazor Web Assembly App with the .Net Core Hosted Option. None of the Layout or Menu were displayed. I have not made any changes templates yet.

If I create a Blazo Web Assembly App without the .Net Core Hosted Option both the Lyout and Menus are displayed.

I did a diff on the style sheets and layout pages and nothing appears to be different between the two different projects with respect to these files. Has anyone else experienced this behavior? If so do you have a suggestions on what I might be missing?

---Additional Info.

I am creating a Web assembly project and just running it straight away.

Step#1

enter image description here

Step#2

enter image description here

Step#3

enter image description here

Step#4

enter image description here

Result:

enter image description here

Just doing a web assembly without a Core Hosted and running gives this:

enter image description here

If I choose the Blazor Server App Template it also displays with the menu. I haven't made any changes to the application the was created by the template.

Thanks William

Thanks

标签: blazor

解决方案


我为浪费您的时间而道歉。我的项目名称中有一个空格。这导致样式表引用中也有空格。没有样式表没有导航菜单。我删除并重新创建了名称中没有空格的项目,现在页面按预期呈现。我应该抓住这个。我非常感谢您的所有回复。

威廉


推荐阅读