Hi
I am using Visual Studio 2019. When i am creating new project it is not showing option Asp.net Core Web Api.
Thanks
Hi
I am using Visual Studio 2019. When i am creating new project it is not showing option Asp.net Core Web Api.
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Chetan SanghaniPosted Jun 5, 2024, 4:24 PM
If you're not seeing the option to create an ASP.NET Core Web API project in Visual Studio 2019, it's possible that the required workload or components are not installed. Here's how you can ensure that you have the necessary components installed:
Open Visual Studio Installer: Launch the Visual Studio Installer from the Start menu or by searching for "Visual Studio Installer" in the Windows search bar.
Modify Installation: In the Visual Studio Installer window, you'll see a list of installed products and available updates. Find your Visual Studio 2019 installation in the list and click on the "Modify" button.
Workloads: In the "Workloads" tab, ensure that you have the ".NET Core cross-platform development" workload selected. This workload includes ASP.NET Core development tools, which are required for creating ASP.NET Core Web API projects.
Individual Components: If you prefer, you can also check the "Individual components" tab to see if the specific components related to ASP.NET Core are installed. Look for components related to ASP.NET Core, such as ".NET Core Runtime" and ".NET Core SDK".
Modify Installation: If you find that the necessary components are not installed, check the checkboxes next to them and click on the "Modify" button to install them.
Wait for Installation: Allow the Visual Studio Installer to download and install the selected components. This process may take some time depending on your internet connection speed and the size of the components being installed.
Restart Visual Studio: Once the installation is complete, restart Visual Studio for the changes to take effect.
After following these steps, you should be able to create ASP.NET Core Web API projects in Visual Studio 2019 without any issues. If you continue to experience problems, feel free to reach out for further assistance.