See my comment on the accepted answer.
From what I have researched and tried, the "ASP.NET and web development" option should be used for VS 2022+. Use the VS installer to view options for this project type at the right side of the window. Expand the ASP.NET and Web development options. You can select the .NET Framework project and item templates AND Additional project templates (previous versions) which helps to fill some of the holes in missing project add types.
See the figure below.