由于 Nugget,Visual Studio 需要很长时间来构建和加载解决方案 [英] Visual Studio taking long time to build and load solution because of Nugget
问题描述
Visual Studio 需要更长的时间来打开解决方案和构建,而我只有 6 个项目.当我检查提琴手时,我看到下面的请求,并注意到一旦此请求完成,Visual Studio 就会变得响应.
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:
- 这些对 nugget 的要求是什么?
- VS 是否会像我怀疑的那样变得缓慢?
- 如何停止这些请求?
推荐答案
这些请求可能是您的解决方案启用自动恢复 NuGet 包的结果,您可以在工具 -> NuGet 包管理器 -> 包管理器设置下的 VS 中禁用它,然后取消选中允许 NuGet 下载丢失的包".
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".
如果您需要包还原,请确保您与 NuGet 库的连接良好,或者在包管理器设置下禁用所有不相关的源.
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.
再见
这篇关于由于 Nugget,Visual Studio 需要很长时间来构建和加载解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!