I have created an application with ASP.Net 4.5 and MVC5; however, the hosting server that I use doesn't support MVC5. Therefore, I have to downgrade to MVC4.
I can either use ASP.Net 4.5 or ASP.Net 4, my application works on both frameworks.
I have tried the following steps from this question or this or this:
- Right click on the project in the Solution Explorer (in Visual Studio) and select Properties.
- Change the Target Framework drop-down to whatever framework you now wish to target.
- Do the same for any other projects or test projects in the solution, that you also wish to change the target framework for.
- Manually edit the .csproj file in a text editor and replace all "net45" strings to "net40"
- In visual Studio, click the Tools menu and select Library Package Manager > Manage NuGet Packages for Solution
- Click on Updates
- Update all Microsoft packages
- Click Restart Now.
- Rebuild project.
Everything works perfectly until step 4. However the MVC packages don't get downgraded to MVC4.
I have also tried creating a MVC 4 application, but since I use Visual Studio 2015, I'm not given that option.
Any ideas on how to downgrade to MVC4, painlessly? Thank you :)