asp.net.netvisual-studiovisual-studio-2019

How to create an ASP.NET website in Visual Studio 2019?


I am creating an application using VS 2019 and Web API (.NET Framework). I need to create a blank website, but getting only web application project template. Is there any tools do i need to be installed? Please check the below image to understand my need.

VS 2017

enter image description here

VS 2019

enter image description here


Solution

  • To create "ASP.NET Web Site" projects in Visual Studio 2019 you need to install the "Additional project templates (previous versions)" ASP.NET Component as shown below.

    I have to confess I'd missed this option too as it's only visible if you click on the ASP.NET workload and is not listed on the "Individual components" tab!

    enter image description here

    After installing the component, the templates are now present:

    enter image description here