Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

fix v5: Missing @using in _Imports.razor in template

Open Beginner friendly
#5,364 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp
Domain
frontend, tooling

Research direction

Start with src/Templates/templates/blazorweb-csharp-10/.template.config/template.json and reproduce a .NET 10.0 Fluent Blazor Web App using PerPage/Component interactivity and the sample pages. Check the generated _Imports.razor; done means it includes @using NameOfMyApplication.Client.Layout and the navigation menu appears as it does for .NET 9.0.

Written by the indexing model from the issue text.

Description

🐛 Bug Report

First, thank you very much for this incredible library.

🤔 Expected Behavior

This is about templates for .Net10.0 .

😯 Current Behavior

Some @using statement is missing in the “import.razor” file generated by the templates.
More precisely the problem occurs when the following parameters used when creating a new application:

  • Template: Fluent Blazor Web App
  • Target Framework: Net10.0
  • Interactive render mode: Auto (Server and WebAssembly)
  • Interactivity location: PerPage/Component
  • Include Sample Pages: Yes (default)
  • Auth: No authentication

The missing line is:
@using NameOfMyApplication.Client.Layout

As a result, the navigation menu does not appears.

Note that everything is Ok when the Net 9.0 parameter is used.

💻 Repro or Code Sample

Use the last 5.0 templates for creating a new application.

Seems to occur when the Interactivity location parameter is set to PerPage/Component (just with .Net 10.0).

💁 Possible Solution

Some problem here : src/Templates/templates/blazorweb-csharp-10/.template.config/template.json .

🌍 Your Environment

  • Windows 10.0
  • Microsoft Edge, Google Chrome, Mozilla FireFox
  • .NET 10.0 and Fluent UI Blazor library Version 5
Dominant language
C#
Stars
4.8k
Forks
483
Avg merge
15h 36m
Merged PRs (30d)
77

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/fluentui-blazor

All issues in microsoft/fluentui-blazor

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.