[英]Visual studio 2019 - package manager GUI freezes when using local Nuget repository but when fiddler is working it works fast
I am using local Nuget repository on air gap environment.我在气隙环境中使用本地 Nuget 存储库。
When I use the Nuget package manager of Visual Studio 2019 and I search for package or even when moving from Browse to Installed and vice versa the application freezes for at least half a minute.当我使用 Visual Studio 2019 的 Nuget package 管理器并搜索 package 或什至在从浏览移动到已安装时,应用程序冻结至少半分钟,反之亦然。
When I tried to investigate the issue with Fiddler I have found out that as long as Fiddler is up The problem is solved.当我试图用 Fiddler 调查这个问题时,我发现只要 Fiddler 启动,问题就解决了。
How come it works fine when fiddler is on?当提琴手打开时,它怎么能正常工作?
Quite strange and not sure whether fiddler finally caused the problem or some suitable factor.很奇怪,不确定 fiddler 是否最终导致了问题或某些合适的因素。
Please try the following steps to check your VS environment:请尝试以下步骤检查您的 VS 环境:
1) disable any third party extensions under Extensions --> Manage Extensions --> Installed . 1)在Extensions --> Manage Extensions --> Installed下禁用任何第三方扩展。
2) close VS, delete all files under C:\Users\xxx\AppData\Local\Microsoft\VisualStudio\16.0_xxx\ComponentModelCache
, and then restart VS to test again. 2)关闭VS,删除
C:\Users\xxx\AppData\Local\Microsoft\VisualStudio\16.0_xxx\ComponentModelCache
下的所有文件,然后重启VS再次测试。
3) type [Net.ServicePointManager]::SecurityProtocol=[Net.ServicePointManager]::SecurityProtocol-bOR [Net.SecurityProtocolType]::Tls12
under Tools --> Nuget Package Manager --> Package Manager Console 3) type
[Net.ServicePointManager]::SecurityProtocol=[Net.ServicePointManager]::SecurityProtocol-bOR [Net.SecurityProtocolType]::Tls12
under Tools --> Nuget Package Manager --> Package Manager Console
4) close vs, delete global nuget.config
file under C:\Users\xxx\AppData\Roaming\NuGet
, restart to test again. 4)关闭vs,删除
C:\Users\xxx\AppData\Roaming\NuGet
下的全局nuget.config
文件,重启再次测试。
5) reset vs settings under Tools --> Import and Export Settings --> Reset vs settings 5)在工具->导入和导出设置->重置vs设置下重置vs设置
6) type devenv /safemode
under Developer Command prompt for VS to start a new pure VS to test again. 6)在开发者命令提示符下输入
devenv /safemode
让 VS 启动一个新的纯 VS 再次测试。
7) repair vs or update it if there is a new release version. 7)如果有新的发布版本,请修复或更新它。
Besides , as your choice, you could initialize your VS.此外,作为您的选择,您可以初始化您的 VS。 Close VS, just delete the whole
C:\Users\xxx\AppData\Local\Microsoft\VisualStudio\16.0_xxx
folder.关闭VS,只删除整个
C:\Users\xxx\AppData\Local\Microsoft\VisualStudio\16.0_xxx
文件夹。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.