Answer the question
In order to leave comments, you need to log in
Asp.net mvc razor?
Good day. I worked for a long time, and I continue to work with php + Bitrix. The question arose with an edge, something new is needed, because. it is inconvenient for clients to work with it + the visual editor is just awful there. I did not want to try other CMS in php, and decided to write my own simple CMS, so that it would work quickly and be understandable to the end user, but on something new.
We chose between ASP.NET MVC and RoR.
Chose ASP.NET MVC.
Everything there is great and wonderful, but there is one thing that crosses everything out - a very long compilation of views on the first run, and the views are quite simple. Sometimes up to 5 minutes the first load of a simple view, when changing the view without stopping debugging - 2-4 minutes the first load of a new view. It's so unsettling, but I'm used to php that everything is instant. I don't know what to do now, and what I'm doing wrong. Googling couldn't.
The computer is powerful enough.
VS 2013 for WEB, WIN 8.1, WIN and VS, along with projects, spin on SSD.
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
I specially installed VS 2013 Express for WEB, created it according to the Internet Application template, launched it - everything works quite quickly. Change of representation without a stop - no more than half a minute. This despite the fact that all this is on the HDD. Perhaps the problem is not in recompilation, but in the speed of uploading files to the server. My project is running on local IIS8.
Compilation can also take place on the server after publication, and when the site is first opened, all sorts of CodeFirst migrations, etc. can be processed
A very strange and unusual situation.
Can you post somewhere (for example, GitHub) an example of a project that takes so long to launch?
The problem is not the views. It is necessary to look at what happens during assembly. Maybe NuGet is pulled every time. Maybe some initialize tasks hang. Might be worth relocating the studio. Huge MVC projects are assembled in less than a minute. Or something in IIS.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question