WebApi2 in visual studio 2012

后端 未结 5 1734
南旧
南旧 2021-02-18 17:07

How can I create a project that uses WebApi2 in visual studio 2012?

Do I have to create with a blank project or do I have to create a MVC project?

I don\'t want

5条回答
  •  执念已碎
    2021-02-18 18:00

    Create a MVC project, right-click to and select

    1. Create an MVC project
    2. Right click the project in solution explorer and select "Manage nuget packages"
    3. Select "include Prerelease"
    4. Search for web api and select "Microsoft ASP.NET Web API", make sure the version is 5.0.0-beta2 (Prerelease)

    Wait, after a while you should be good to go.

提交回复
热议问题