Skip to content

Blazor Hybrid guide: both CLIs default to the same components folder #28

Closed

Description

@Shewart

Summary

docs/BLAZOR_HYBRID.md option 2 ("Both libraries") uses ShellUI (Blazor) and ShellUI Native in one MAUI Blazor Hybrid project. Both shellui init and shellui-native init default to Components/UI with the namespace <App>.Components.UI, so Button.razor and Button.cs both declare <App>.Components.UI.Button, which fails with CS0101. The guide's file tree also shows only the native files there.

Steps to reproduce

dotnet new maui-blazor -n HybridApp && cd HybridApp
shellui init --yes && shellui add button
shellui-native init && shellui-native add button
dotnet build

Suggested fix

shellui-native init detects shellui.json and defaults to another folder (for example Components/Native), or the guide says to set ComponentsPath. Verify the guide end to end with the commands above.

Activity

  1. added
    bugSomething isn't working
    documentationImprovements or additions to documentation
    on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions