blazor - 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
Step#2
Step#3
Step#4
Result:
Just doing a web assembly without a Core Hosted and running gives this:
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
解决方案
我为浪费您的时间而道歉。我的项目名称中有一个空格。这导致样式表引用中也有空格。没有样式表没有导航菜单。我删除并重新创建了名称中没有空格的项目,现在页面按预期呈现。我应该抓住这个。我非常感谢您的所有回复。
威廉
推荐阅读
- c# - 如何在 c# 中从 fcm 发送数百万个推送通知
- java - 多线程程序中的nullpointerexception问题
- api - Flask API 可选参数不起作用
- javascript - 用于 Wordpress 嵌入式小部件和全屏容器的 React.JS 插件
- spring-boot - @Counted 如何在 Spring Boot 中工作?
- mongodb - 安装 go mongodb 驱动有问题
- javascript - 页面完全加载后如何修复加载 gif?
- spring - 在多模块项目中使用 hibernate-types-52 JsonBinaryType 时发生异常
- c++ - 如何使用 C++ 在 UE4 中旋转骨骼?
- java - 如何根据子字符串将项目添加到 ArrayList?