how to install the template from a previous .net SDK?

William Liu 466 Reputation points
2024-04-08T00:58:02.7833333+00:00

There are several templates come with .net SDK installation. I am using .net 8 SDK now, but I would like to install some blazor related templates which are coming with .net7 SDK, as I am studying some blazor tutorial videos which were made in .net 7.

I can find these old blazor templates after install .net 7 sdk. But I would like to know if there is a way to install previous template without installing the old SDK, e.g. blazorwasm? Thanks!

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,841 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,553 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,109 questions
{count} votes

Accepted answer
  1. AgaveJoe 28,366 Reputation points
    2024-04-08T09:51:55.1866667+00:00

    The Blazor Server template comes with the .NET Core 7 SDK. If .NET 7 is installed then simply select Blazor Server App when creating a new project.

    Capture

    If you do not have .NET 7 then install the SDK.

    https://dotnet.microsoft.com/en-us/download/dotnet/7.0


1 additional answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 65,131 Reputation points
    2024-04-08T01:46:42.8466667+00:00

    I would not bother with blazor 7 templates. If you can not use a Blazor 8 template with the sample code, then I’d skip the tutorial. Generally you will understand the code better if you need to convert to current version. also see breaking changes:

    https://learn.microsoft.com/en-us/dotnet/core/compatibility/8.0


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.