简体   繁体   中英

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.

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.

When I tried to investigate the issue with Fiddler I have found out that as long as Fiddler is up The problem is solved.

How come it works fine when fiddler is on?

Quite strange and not sure whether fiddler finally caused the problem or some suitable factor.

Please try the following steps to check your VS environment:

1) disable any third party extensions under 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.

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.

5) reset vs settings under Tools --> Import and Export Settings --> Reset vs settings

6) type devenv /safemode under Developer Command prompt for VS to start a new pure VS to test again.

7) repair vs or update it if there is a new release version.

Besides , as your choice, you could initialize your VS. Close VS, just delete the whole C:\Users\xxx\AppData\Local\Microsoft\VisualStudio\16.0_xxx folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM