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

0

I have a problem when 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 hosting. Downgrade version does not work, VS does not downgrade all references and generates a lot of conflict.

    
asked by anonymous 11.10.2016 / 02:40

1 answer

0

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

    
11.11.2016 / 22:17