Visual Studio taking long time to build and load solution because of Nugget

余生长醉 提交于 2019-12-13 05:14:39

问题


Visual studio is taking a longer time to open the solution ,to build and I just have 6 projects.When I examined the fiddler I see below requests to nugget and notice that once this request is complete the visual studio becomes responsive.

Can any body suggest the below:

  1. what are these requests for nugget?
  2. Is VS becoming slow because of this as I am suspecting?
  3. How to stop these requests?

回答1:


These requests can be a result of your solution enabling automatically restoring NuGet packages, You can disable it in the VS under Tools -> NuGet Package Manager -> Package Manager Settings, and unchecked the "Allow NuGet to download missing packages".

If you need package restore, make sure that you have a good connection to the NuGet Gallery or disable all the unrelevant sources, under the Package Manager Settings.

bye



来源:https://stackoverflow.com/questions/26154641/visual-studio-taking-long-time-to-build-and-load-solution-because-of-nugget

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!