ASP.NET MVC Project and the App_Code folder-Collection of common programming errors
The real answer is because Microsoft wants you to buy in that you need VS to do MVC. However, to convert the project to pure JIT which is way easier to work with…
You can do it pretty straight forward.
(1) Move all folders containing class files to App_Code
(leave Views folder where it is)
(2) Make Global.asax
not needing a code behind or inherits reference by removing those attributes then placing
[script runat="server"]
... place contents of code behind's class inner code
[/script]
and delete the code behind for good
(3) In Bin
Remove the project DLL reference making sure to keep the other necessary DLLs in terms of running MVC
(4) Remove solution files and properties folder and obj folder
I do this routinely for nop MVC as its much simpler to work with the web tier on JIT. Developers that don’t understand this are not working in the trenches every day on many websites with various custom quick fixes needed. The sites we work on get hundreds thousands of hits per day so using JIT has no performance penalty after the initial bump.
Seems less is more when it comes to smaller website development.