Build Problem

jack Ryder asked on April 3, 2014 08:27

hello all, I have issue with build project.that is take more time , while i am calling service call which is in app everytime i have to wait 20 min around.

Recent Answers

Brenden Kehren answered on April 3, 2014 09:17

Whenever you make a change to those .cs files in the App_Code directory and do a build it will take a considerable amount of time to build the project. On my previous computer it took about 20-25 minutes to build. On my new computer with a solid state drive, I can build in 7-10 minutes. I'd suggest changing your settings on the project so it doesn't build every time you debug. The website will still error out if there is bad code and you'll see the errors, it just won't have to build every time you debug.

0 votesVote for this answer Mark as a Correct answer

Christian Nickel answered on April 3, 2014 09:54

I've found that it is much better to move most of your code outside of App_Code and into a separate DLL which you build when needed, it plays much better with Visual Studio. In our case, the only thing we have in our App_Code directory is an ITask implementation (Scheduled Task) and a CMSLoaderAttribute to register that task, and that is only there because if it was in our DLL we would need to register the DLL in the GAC every time we have a new version.

Also, this way you don't have to build the entire website every time. We also did this to test custom code in an external library and kept Kentico as a web project, no need to build every time, just a simple application restart when swapping out a DLL. You may have reasons to build Kentico as an Application Project, but if it causes you more pain than it is worth, try something else!

And 7-10 minutes to build an application? And 20-25 before that? That is worse than most Enterprise Java/Maven projects I've been on, even on 5400RPM hard drives! Something is wrong IMO if it takes that long to build.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on April 4, 2014 07:04

I'd say 7-10 minutes is pretty good for a large project like Kentico. I've worked with other large standard projects and CMS projects and they have taken longer to build.

It's a bit hard to compare compilers across technology platforms. How long does your Kentico site take to build once you've made a change in the BIN or App_Code directory?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.