Slow refactoring in web site project

Bryan Drenner asked on April 13, 2015 17:19

For the first time, I'm working with a Kentico instance that is a web site project (as opposed to a web application project). I've added a couple projects to the solution that the Kentico Installer generated, and the CMS project just references them. Because the CMS project takes more than 10 minutes to build, I excluded the CMS project from the build configuration. Now when I build the solution it only builds my custom assemblies, and it leaves the CMS project alone.

This works well, but I still have one major issue: Whenever I use Visual Studio's refactor-rename feature, it displays a "Rename" dialog box with progress bar that says, "Preparing files for project 'CMS'". It appears to slowly go through every file in the CMS project. It takes 10 minutes per refactor. A similarly tedious process also delays the CTRL + , search. It's like it's precompiling the whole site every time. Is there any way to stop this behavior?

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