This is easier if you go to the installed nuget packages in the project and remove all packages that are not related to the ASP.NET web API. You cannot remove the packages that the web interface is based on. In addition, the help function in the Web API is based on ASP.NET MVC, so if you want to remove ASP.NET MVC dependencies, you will need to remove the ASP.NET scope generated for this in the project. After removing all the nuget packages that you donβt need, you will get some compilation errors due to existing references to unused classes, so you will also have to get rid of them.
source share