Downgrade / convert mvc 4 to mvc 3

I know this is a rather strange question, please don't flame me :)

I have a specific need to “downgrade” the current Asp.Net Mvc 4 (net framework 4.5) application to Asp.Net Mvc 3 (net framework 4.0) because our shared hosting provider does not support .Net 4 (I know this crazy thing given that it has been in retail since April 12, 2010, and the first beta was released in May 2009, but this is not the point of communication).

Is there any tool or guide or anything that can help in this process? I get a little lost because I updated many Applications but I never had to downgrade it.

I use some features like begincollectionitem which may not be compatible with mvc3

+2
source share
1 answer

I doubt that you will find an official manual or tool, you will have to do it manually. Personally, I would do the following:

  • Launch a new MVC 3 project (MVC3 is available via nuget)
  • Copy files from one to another
  • Fix any compilation issues
  • Use the publish function to publish somewhere locally (this will hopefully find compilation problems in your Razor views that won't be found during the build of the project)
  • Check out the site completely!

Sorry, but not more useful, but I don’t think that people usually develop a downgrade process.

+2
source

Source: https://habr.com/ru/post/1261769/


All Articles