'Couldn't find class template in visual studio web api project?

I couldn't find a class template in visual studio asp.net core web api project , when clicking :

=> Add => Class

enter image description here

Class option doesn't show



Solution 1:[1]

So the problem was the ASPNET and web development installation.

Simply go to 'Visual Studio Installer' > Click on 'Modify' for your Visual Studio. (Visual Studio Installer is a separate application with Visual Studio)

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ramil Aliyev