Visual Studio hangs constantly during build

前端 未结 13 1637
盖世英雄少女心
盖世英雄少女心 2021-01-31 01:47

Probably between 25 and 50% of the times I build my solution, I see this:

\"The operation you requested is taking longer than expected to complete. This dialog will clos

13条回答
  •  深忆病人
    2021-01-31 01:59

    In addition to the felickz's answer which solves (or almost solves) this problem for builds:

    Except the problem during a build I also had problem with the Package Management Console. It took about a minute to wait for it. Using the procmon I found that the NuGet repository folder was parsed each time this window is opened (very smart, Microsoft!). There were about 1000 packages in this folder. After removing everything from the above folder the performance problem diapered.

    Note that my answer relates to the VS 2015 (and may be below). I didn't tested, but suspect in VS 2017 it should be ok.

提交回复
热议问题