Can run the CLI

Van Ngoc Thang 0 Reputation points
2024-11-04T08:26:15.49+00:00

As I entered this cli:

dotnet new blazorserver -o BlazingPizzaSite

here's the error:

No templates or subcommands found matching: 'blazorserver'

To list installed templates similar to 'blazorserver', run:

dotnet new list blazorserver

To search for the templates on NuGet.org, run:

dotnet new search blazorserver

For details on the exit code, refer to https://aka.ms/templating-exit-codes#103wser -o Pages

The template "Razor Component" was created successfully.

This question is related to the following Learning Module

Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
9 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Pradeep M 3,830 Reputation points Microsoft Vendor
    2024-11-04T09:11:30.3966667+00:00

    Hi Van Ngoc Thang,

    Thank you for bringing this matter to our attention.

    We want to assure you that our team is fully aware of the issue and is actively working towards a solution. We understand that this might be causing some inconvenience, and we’re committed to resolving it as quickly as possible.

    In the meantime, we recommend that you continue progressing through the Learning Paths, but without completing the exercise modules for now. These exercises are temporarily unavailable (for .NET8), but the rest of the Learning Path content should still help you move forward in your learning.

    Once we have a fix or further information, we’ll update you right away.

    We greatly appreciate your patience and understanding during this time, and we’re working hard to provide a smooth learning experience for you.

    0 comments No comments

  2. Bruce (SqlWork.com) 66,226 Reputation points
    2024-11-04T16:57:17.0066667+00:00

    the "blazorserver" template was a .net 6 template. in .net 8 it has been replaced with the "blazor" template. My guess is the leaning module has not been updated to .net 8.

    note: .net 8 requires a interactive render mode for event processing:

    https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.