dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.04k stars 1.73k forks source link

Maui Blazor example project doesnt load sidebar if the projectname contains a space #16139

Open Dragonjester opened 1 year ago

Dragonjester commented 1 year ago

Description

When creating a .NET Maui Blazor App, the navigation is only shown when the name doesn't contain a space. i.e. "MauiApp Lorem Ipsum" grafik

BUT when you create the project without a space in its name, the sidebar is shown. i.e. "MauiBlazorTest" grafik

Steps to Reproduce

  1. Start VS
  2. Select to create a new Project
  3. Select ".NET MAUI Blazor App"
  4. Project Name: "MauiApp Lorem Ipsum"
  5. Select .NET 7.0
  6. Start the debugging on your local windows machine

Link to public reproduction project repository

https://github.com/Dragonjester/Maui-Space-bug

Version with bug

7.0.49

Last version that worked well

6.0

Affected platforms

Android, Windows

Affected platform versions

Windows SDK 10.0.19041.0

Did you find any workaround?

Create the project without a space in its name

Relevant log output

No response

rachelkang commented 1 year ago

Hi, @Dragonjester - could you try something like <AssemblyName>NameWithoutSpaces</AssemblyName> and let us know if that works?

ghost commented 1 year ago

Hi @Dragonjester. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

Dragonjester commented 1 year ago

Hi @rachelkang, setting the AssemblyName doesn't change the behaviour

grafik

ghost commented 1 year ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

XamlTest commented 1 year ago

Verified this on Visual Studio Enterprise 17.7.0 Preview 6.0. Repro on Windows 11 .NET 8, Android 13.0-API33 and iOS 16.4 with below Project: Maui Space Bug.zip