Skip to content

feat: add .NET 8 (LTS) support to FluentUI Blazor project templates #3942

@fkitsantas

Description

@fkitsantas

🙋 Feature Request

Allow users to choose .NET 8 (LTS) when creating new FluentUI Blazor projects using the official templates. This ensures compatibility with production environments and aligns with Microsoft's support strategy for long-term stable releases.

🤔 Expected Behavior

When creating a new FluentUI Blazor project using the latest template, users should be given the option to target .NET 8 (LTS) in addition to .NET 9, which is currently in preview or not used widely in production environments.

😯 Current Behavior

The current project templates for FluentUI Blazor only support .NET 9, which is not ideal for production scenarios since .NET 8 is the current Long-Term Support (LTS) version. To use .NET 8, I had to manually download and use an older version of the template.

💁 Possible Solution

Update the template logic to support multi-targeting or allow a selection during the creation process so users can choose between .NET 8 (LTS) and .NET 9. Alternatively, maintain separate template versions for each .NET version and allow users to install the one that matches their runtime needs.

🔦 Context

In production environments, using LTS versions of .NET is a best practice for stability and long-term support. Being forced to use .NET 9 for the latest FluentUI Blazor templates makes adoption more difficult or risky. Offering .NET 8 support directly in the latest template would streamline development and adoption.

💻 Examples

When running:

dotnet new fluentui-blazor

Prompt or flag option like:

--framework net8.0

Should be available. Ideally, dotnet new UI templates should allow framework selection like other templates (e.g., Blazor WebAssembly).

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNew issue. Needs to be looked at

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions