Why does Visual Studio create a solution not allow selecting .NET 8?

David Thielen 3,216 Reputation points
2023-12-05T03:33:24.32+00:00

Hi;

I'm trying to create a new Blazor Server app and want it to be .NET 8 so I get the ASP.NET Identity library version 8 in the created code (to see what has changed).

Is there any way to do this? The dialog only allows.NET 6 and .NET 7.

I do have .NET 8 installed and am using it in my main Blazor project.

thanks - dave

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Anna Xiu-MSFT 31,151 Reputation points Microsoft External Staff
    2023-12-05T06:41:41.69+00:00

    Hi @David Thielen

    Welcome to Microsoft Q&A!

    The Blazor Server App template has been removed in .NET 8. An alternative is to use a new Blazor project template: Blazor Web App, it supports .NET 8.0.

    For more details, please refer to: New Blazor Web App project template

    Besides, you can also create a Blazor Server App using the .NET 7 framework. Then, right-clicking on the project node in the solution explorer > Properties > change the Target Framework to .NET 8.0.

    User's image

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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