I created an application with ASP.Net 4.5 and MVC5; however, the hosting server I use does not support MVC5. So I need to upgrade to MVC4.
I can use ASP.Net 4.5 or ASP.Net 4, my application runs on both frameworks.
I tried the following steps from this question or this or this :
- Right-click on the project in Solution Explorer (in Visual Studio) and select Properties.
- Change the Target Framework drop-down list to all the frames you want to customize.
- Do the same for any other projects or test projects in the solution that you also want to change the target structure for.
- Manually edit the .csproj file in a text editor and replace all the lines "net45" with "net40"
- In Visual Studio, click the Tools menu and select Library Package Manager> Manage NuGet Package Solutions
- Click "Updates"
- Update all Microsoft packages
- Click Restart Now.
- Reconstruction of the project.
Everything works fine until step 4. However, MVC packets are not redefined until MVC4.
I also tried to create an MVC 4 application, but since I am using Visual Studio 2015, this option is not provided to me.
Any ideas on how to seamlessly upgrade to MVC4? Thanks:)
source share