VS 2010 build really slow

Posted on 2011-05-06
Last Modified: 2012-05-11
I'm using VS 2010 with a somewhat large C# program. Build times are kind of slow. I have a couple of questions ...

1. Is there some way I can profile VS to find out what's taking the time?
2. Otherwise, are there any tricks to help speed things up? I've poked around online but haven't seen anything particularly relevant.

This particular solution (which I inherited) has about 23 projects. Most of the projects contain just a single .cs dll. None of these projects are used anywhere else, and it's pretty unlikely that they ever will be. I've been thinking about consolidating it into one or two projects with a view to simplifying things as well as speeding things up. Any thoughts on that?
Question by:BlearyEye
    LVL 14

    Expert Comment

    >>Any thoughts on that?
    I hope you have tried clean project, clean solution, then rebuild.<in vs2005 there is a sub menu for that>
    My answer is more technical, backup your project first to the other drive to be sure it's safe if anything goes bad.
    try to transfer your project code to the other drive, eq., from drive c to drive d or e
    and much better try it on a usb stick.

    If speed is Ok, it means the problem is from the disk sectors.
    if does not help from trying many drives, try a scan disk, try again, if does not help also?, it means probably you have a corrupted physical memory. try this step.
    empty your pagefile to zero size.
    put back default pagefile size.
    if does not help also,
    use ccleaner to check crosslink dlls.
    run defragmenter

    thats all,
    if does not help with all my recommendation above, you have a visitor.

    Good Luck
    LVL 33

    Assisted Solution

    by:Todd Gerbert
    How slow is slow?

    I would think consolidating your DLL projects would probably be a good idea...I have a hard time imagining that the code in all of those single-file DLL's is so un-related that it warrants separate projects.

    Also, Visual Studio should be smart enough to only rebuild projects that need to be rebuilt (i.e. don't rebuild projects unless you've changed something).

    You can also use the configuration manager and explicitly set whether projects build or not with the solution.
    LVL 1

    Accepted Solution

    tgerbert: I checked the configuration, and saw that the setup project was marked for automatic build. I disabled that and now it builds in almost no time. Excellent.
    LVL 1

    Author Closing Comment

    I solved the problem based on a suggestion by tgerbert.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now