简体   繁体   中英

Can't add C# class to Web API Project - Visual Studio 2019

I have a solution that includes a ASP.NET Core Web Api project. When i try to add a new class inside the Controller folder or any other, i don't have the C# Class item to add. The only thing with a c# in the list is an Assembly Informatino File.

In any other non-webAPI project this does not happend.

在此处输入图像描述

You can add the class by right click on the controllers folder and choose Add>>>Class>>>Enterclassname .

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM