The guys from the VS team looked at this for me and found a problem with intellisense. Here is their description:
“It appears that both of the files you provided to me contain part of the static partial class EntityPropertyDescriptors, and I would assume that all the other 500 files too. What happens is that as we create the IntelliSense cache, each time, when we analyze one of these files, we see that it has a static class, and we decide whether this static class has any extension methods.To look for extension methods, we look at each method in each to see, is there an extension method for it that forces us to "process each file again to see if any extension methods have a type."
They found a similar problem with VS2010, but now fix it. Unfortunately, they are not going to fix it in VS2008, so we have a workaround for including all partial classes in a single file. They can still be partial, but they must be in the same physical file to work around the problem.
After combining all the partial classes into one file, load the time for this project problem from 30 minutes to 10 seconds.
Many thanks to Eric Lippert and Kevin Pilch-Bisson for helping me with this.
Brad irby
source share