How to create MVC 4 web.api project instead of MVC 5

Asked

Viewed 51 times

0

I have a problem when it comes to creating my project in VS 2015, whenever I create the web.api application it creates with the version of MVC 5, but I need it to be MVC 4 because of the hosting. Downgrade version does not work, VS does not downgrade all references and generates a lot of conflict.

  • 1

    I can’t answer in my head, but I can tell you that you’ll have to add these features to the IDE and make some manual settings.

1 answer

0

I suggest installing Visual Studio 2012 Express for Web on a virtual machine (in Azure or AWS - a trial account should suffice), creating the ASP.NET MVC 4 project there, saving (in a Git or Svn repository, preferably) and opening on your machine with VS 2015 with Update 1 (from this version seems to support ASP.NET MVC 4, although it is not possible to create).

Browser other questions tagged

You are not signed in. Login or sign up in order to post.