Visual Studio : How to fix missing ASP.NET template for .NET Framework

Visual Studio 2022 - missing ASP.NET .NET framework template

Yesterday, I installed the Visual Studio 2022 Community edition and noticed it was missing ASP.NET template for .NET Framework. I was not able to create either ASP.NET MVC or ASP.NET Web Forms web project. I was only able to find the ASP.NET Core related templates. This article will show how I was able to solve the problem.

In the "Create new project" window, I searched for "framework" keyword to list only the .NET Framework related templates and it showed me the ones for Windows Forms, WPF, console, and Class Library, but there was no ASP.NET Web Application (.NET Framework) template.

Visual Studio 2022 - List of framework templates with missing ASP.NET .NET Framework template

I decided to check the installed components for the "ASP.NET and web development" workload. To do that, we need to run the Visual Studio installer.

Checking the Visual Studio installer

If we scroll all the way to the bottom of the list of available templates, we can click on the "Install more tools and features" link, which will open the Visual Studio Installer.

Visual Studio 2022 - install more tools and features link at the bottom of the list of templates

Looking at the installed components of the ASP.NET and web development workload I didn't see anything that might indicate a reason for the missing ASP.NET template since I could see that the .NET Framework was already installed.

But then, I checked the "Individual components" tab of the Visual Studio Installer.

Individual components for .NET

Inside the .NET group, below the ".NET Framework 4.8 targeting pack", there is a component named ".NET Framework project and item templates" and this component was not selected.

Visual Studio 2022 Installer - individual components .in NET group

Hovering over the component, the tooltip describes it as:

Enables .NET Framework project templates, item templates & related features for .NET Framework development.

This component looked like exactly what could solve the problem, so I selected and installed it.

Installing .NET Framework project and item templates added 1.6GB of space required, which might be the reason for not being included by default in the first place during the Visual Studio 2022 install.

ASP.NET .NET Framework template not missing anymore

After installation, I launched Visual Studio 2022 and again searched for the "framework" keyword in the search box and this time the ASP.NET Web Application for the .NET Framework template was finally listed.

Visual Studio 2022 - List of framework templates with ASP.NET .NET Framework template available

Note: Installing .NET Framework project and item templates component also adds another .NET framework related template, for "Web Driver Test for Edge" project.

Conclusion

When we install Visual Studio, not all project templates might be listed. In my case, it was missing the ASP.NET template for .NET Framework. Luckily, this was easily solved by modifying the Visual Studio installation and installing the missing ".NET Framework project and item templates" component.

71 Comments

Click HERE to add your Comment
  1. Rahul S
    November 14, 2021
  2. V
    November 18, 2021
  3. Fritz
    November 19, 2021
  4. Oscar
    November 21, 2021
  5. Sidhant
    November 26, 2021
  6. Francesco
    November 27, 2021
  7. Pouypm
    November 29, 2021
    • admin
      November 29, 2021
  8. Valeriy
    November 29, 2021
  9. Vinnie
    December 3, 2021
  10. Brazilian Boy
    December 4, 2021
  11. Taniya
    December 6, 2021
  12. Allan Jonathan
    December 9, 2021
  13. JJ
    December 10, 2021
  14. Anders
    December 10, 2021
  15. Brijesh
    December 14, 2021
  16. Bouchra
    December 18, 2021
  17. Tharaka
    December 20, 2021
  18. Frane
    December 20, 2021
  19. Thank You!
    December 21, 2021
  20. Md Rifat Islam Rakesh
    December 29, 2021
  21. Jimmy Smith
    December 31, 2021
  22. Pat
    January 1, 2022
  23. Long
    January 4, 2022
  24. John Dev
    January 6, 2022
  25. Jacob S
    January 9, 2022
  26. Firas
    January 9, 2022
  27. LynneC
    January 16, 2022
  28. CesaR560
    January 18, 2022
  29. nge90
    January 18, 2022
  30. Wesam
    January 23, 2022
  31. Shalza
    January 26, 2022
  32. Dan
    January 27, 2022
  33. Rohan
    January 31, 2022
  34. Michele
    February 4, 2022
  35. Adolfo Ruiz
    February 21, 2022
  36. Ron
    February 27, 2022
  37. GW
    February 28, 2022
  38. Samed
    March 9, 2022
  39. Ishaq
    March 22, 2022
  40. C
    March 23, 2022
  41. Ashraf
    April 1, 2022
  42. Runtk
    April 1, 2022
  43. Bengi Besçeli
    April 3, 2022
  44. Trent
    April 8, 2022
  45. John
    April 29, 2022
  46. Hamdan
    May 17, 2022
  47. john
    June 9, 2022
  48. Liya
    June 18, 2022
  49. Neal
    July 15, 2022
    • admin
      July 15, 2022
  50. sales
    July 27, 2022
  51. Mark
    August 17, 2022
  52. Jay
    September 6, 2022
    • admin
      September 6, 2022
  53. Joop
    September 18, 2022
  54. Kamilo
    September 22, 2022
    • admin
      September 22, 2022
  55. Vladyslav
    September 26, 2022
  56. Vaughan
    September 28, 2022
  57. KC
    October 3, 2022
  58. Pooja Naregal
    December 7, 2022
  59. nanthakumar
    December 9, 2022
  60. om prakash shrivastava
    December 27, 2022
  61. Ed
    January 9, 2023
  62. Joel R
    January 17, 2023
  63. Alik
    February 13, 2023
  64. JB
    March 2, 2023
  65. Md Adil
    March 14, 2023
    • admin
      March 16, 2023
  66. Jalil
    October 29, 2023

Write a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.