I have an ASP.NET MVC website that I have verified that is compiling each time a new C# file (like a controller) is hit for the first time. I have looked at the Task Manager and every first time a new controller is hit, the page is slow, the CPU gets peaked because of the compiler.
I had the Rosyln compiler before but I have switched back the regular C# compiler without any change.
I have tried to precompile but it doesn't seem to matter when I copy my site to the web hosting computer.
I don't remember this happening on the previous version of apps that I worked with but most of those were mostly ASP.NET Forms with MVC throw into the mix.
Is this normal behavior or is this something I can rectify with a setting? I want it to compile all files when the site is first deployed. (In fact, it is so long for the first page I am not sure how it isn't doing this)
Right now, I have a script that hits every controller after I deploy my application which keeps the issue at bay.
To duplicate, just copy a new main dll to your bin folder. Then look at your task manager as you browse to different pages with different controllers.