سؤال

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