简体   繁体   English

Visual Studio 2019 - package 管理器 GUI 在使用本地 Nuget 存储库时冻结,但当提琴手工作时它工作得很快

[英]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.

相关问题 Nuget package 管理器在 Visual Studio 2019 版本 16.7 中不起作用 - Nuget package manager not working in visual studio 2019 version 16.7 调试时 Visual Studio 2019 死机 - Visual studio 2019 freezes when debugging 当我尝试离线安装 nuget 包文件时,Visual Studio 2019 出现错误 - Visual studio 2019 giving error when I try to install nuget package file offline Visual Studio - 将 Nuget package 添加到 MacOs 中的项目时,拒绝访问路径“/Users/.local/share/NuGet” - Visual Studio - Access to the path '/Users/.local/share/NuGet' is denied when adding Nuget package to the project in MacOs 无法使用 Visual Studio NuGet 包管理器控制台安装包 - Cannot install packages using Visual Studio NuGet Package Manager Console Visual Studio 2019 for Mac:还原或添加 Nuget 包时出错 - Visual Studio 2019 for Mac: Error when restoring or adding Nuget packages Visual Studio 2019 在创建新的 Git 存储库时没有 GitLab 选项 - Visual studio 2019 no option for GitLab when creating a new Git repository 在Visual Studio中构建项目时如何安装Nuget包 - How install Nuget package when building project in Visual Studio X package 在启动 Visual Studio 2019 时未正确加载 - The X package did not load correctly when starting Visual Studio 2019 体积映射 Visual Studio 2019 到 nuget package 缓存 - Volume mapping visual studio 2019 to nuget package cache
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM