24

I want to start learning Web API for that i need to set it up on my visual studio 2010.

In order to get started i looked at online tutorial regarding installation & configuration of web API on vs 2010 which some what confused me and decide ask expert advice on this.

I have couple of basic question regarding web API.

  1. How can i install Web API on VS 2010?
  2. What are the basic requirement for setting up Web API on VS 2010?
  3. Can Web API's be used with asp.net web forms ( As i have been working on asp.net web form, i don't have experience in MVC)

I am sure answers to these few question may help other user who want to start using web API on VS 2010.

Any help in this regarding is highly appreciated

AardVark71
  • 3,928
  • 2
  • 30
  • 50
Learning
  • 19,469
  • 39
  • 180
  • 373

3 Answers3

14

Web API is in the ASP.NET MVC 4 project. You can install it in VS 2010:
http://robertbigec.wordpress.com/2012/10/11/developing-mvc-4-web-api-with-visual-studio-2010/

Vladimir
  • 7,345
  • 4
  • 34
  • 39
  • Can i used it with asp.net web-form also – Learning Apr 03 '13 at 08:25
  • 1
    Here is the nice review: http://www.asp.net/web-api/overview/creating-web-apis/using-web-api-with-aspnet-web-forms – Vladimir Apr 03 '13 at 08:27
  • Been a while, but nothing seems to answer this: is bundling/minification an MVC4 thing or .NET 4.5 thing? – Stachu Oct 23 '13 at 13:11
  • According to [this](http://blogs.msdn.com/b/rickandy/archive/2012/08/14/adding-bundling-and-minification-to-web-forms.aspx) it requires .NET 4.5. – Vladimir Oct 23 '13 at 13:24
13

In Visual Studio 2010 to add a project of type ASP.NET MVC Web API we can:

1 - Have .NET Framework 4 & ASP.NET MVC 4 installed.

2 - Add a new project and select MVC 4

( on this screen there is no Web API template which is where many users may expect to see it )

enter image description here

3 - Select the Web API Template

enter image description here

This was a great question that helped me; I hope this answer helps too.

Catto
  • 6,259
  • 2
  • 52
  • 55
4

You have to downlaod and install SP1 for VS 2010 , then download the ASP.NET MVC 4 Project from Microsoft http://www.microsoft.com/en-ca/download/details.aspx?id=30683 and install it. I would rather download VS 2013 , it has the Web Api (also Web Api 2) as standard - no need to download anything else.

user1967122
  • 63
  • 1
  • 9