Visual Studio 2022 Enterprise cannot create an ASP.NET using .NET8

Lu, Xinghua 0 Reputation points
2025-02-28T16:55:00.5666667+00:00

I use Visual Studio 2022 Enterprise. Try to create an ASP.NET Web application using .NET8 framework. However, .NET8 is not listed in "Targeted framework drop list".

How to create an ASP.NET Web Applicaiton using .NET8 framework?

How to upgrade an app using 4.8 framework to .NET8?

Thanks in advance.

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
387 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 71,696 Reputation points
    2025-02-28T19:18:49.9066667+00:00

    the asp.net web applications (net framework) template is for old 4.* asp.net applications and does not support .net8

    there are several asp.net templates for .net8; razor page, mvc, web api, react, angular, gpc, etc. use "asp.net core" in the search box.

    upgrading to .net8 depends on your code. MVC applications port typically without a lot of recoding. webform applications require a complete rewrite (typically to razor page applications). generally its easier to create a new .net core application, and add the controller and views one at a time from the old application, or convert webform page to razor page.

    see:

    https://learn.microsoft.com/en-us/aspnet/core/migration/proper-to-2x/?view=aspnetcore-9.0

    hint: refractor all possible code to libraries, and update all libraries to .netstandard 2.0 which is supported by both old and new projects.

    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.