This question might be ridiculous. Sorry for that.

I have worked with ASP.NET MVC application. Now I would like to start with AngularJS and ASP.Net Web API 2 in my next web application.

In my previous MVC projects, I selected Empty with the MVC checkbox checked.

What project template should i choose to start with?

Thank you.

有帮助吗?

解决方案 2

Select

New project/Web/Asp.NET web application

Then select WEB API (you can change authentication from here)

Your project is created. Now open nugget packages manager and update to "Microsoft ASP.NET Web API x.x" (currently 2.2).

其他提示

There is the AngularJS SPA Template available in MSDN.

It has already 18K downloads, used by many, and constantly updated (last update from two weeks ago).

To add WebAPI 2.0, just right-click on the project > Manage NuGet Packages > Find and reference Microsoft ASP.NET Web API 2.1 Web Host

Then activate it in Startup.cs

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top