Share via

From VS 2026 Enterprise - Unable to local any of the Nuget packages

Madhusudhan M Kammar 30 Reputation points
2026-03-31T09:07:24.3+00:00

Hi,

I am unable to load any of the nuget packages from my class library. It just keeps loading, but never loads.

I am using Visual Studio 2026 Enterprise V 18.4.0. And Class library version 10.

Developer technologies | Visual Studio | Extensions
0 comments No comments

3 answers

Sort by: Most helpful
  1. Madhusudhan M Kammar 30 Reputation points
    2026-04-06T12:28:25.0833333+00:00

    I am doing good Varsha! Thank you. Hope you are doing well too.

    Issue is resolved by deleting below nuget cache folder.  

    • %APPDATA%\NuGet
    • %LOCALAPPDATA%\NuGet

    Thanks for your valuable time.


  2. Varsha Dundigalla(INFOSYS LIMITED) 4,785 Reputation points Microsoft External Staff
    2026-03-31T10:04:09.9033333+00:00

    Thank you for reaching out.

    When NuGet keeps loading indefinitely in Visual Studio, it usually means Visual Studio is waiting on a background operation that isn’t completing, such as contacting a package source or resolving package metadata. Unfortunately, the UI does not always show an error when this happens.

    To understand exactly what is causing the loop, could you please try the steps below and share the outcome:

    • Open View → Output, then select Package Manager from the “Show output from” dropdown and reopen Manage NuGet Packages. Any errors or repeated messages shown there help identify what NuGet is waiting on.
    • Temporarily disable all custom or private package sources and keep only nuget.org enabled, then try opening the NuGet Package Manager again. This helps check whether a specific feed is blocking the load.
    • From a command prompt in the solution folder, run dotnet restore and let us know if it succeeds or shows any errors. This helps determine whether the issue is with package resolution itself or only with the Visual Studio UI.
    • If possible, let us know whether the loading happens on the Browse, Installed, or Updates tab, or on all of them.

    These checks will help narrow down whether the issue is related to a package source, project references, cache data, or a Visual Studio NuGet UI behavior. Once we have this information, we can guide you with the next steps more accurately.

    Please let us know if you require any further assistance, we’re happy to help. If you found this information useful, kindly mark this as "Accept Answer". So that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.


  3. Q&A Assist
    2026-03-31T09:07:44.8633333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Try the following checks and fixes in Visual Studio 2026 when NuGet packages never finish loading for a class library:

    1. Verify package sources
    • Open Tools > NuGet Package Manager > Package Manager Settings.
    • Go to Package Sources and ensure at least one valid source is enabled (for example, the official https://api.nuget.org/v3/index.json feed if applicable).
    • In the Manage NuGet Packages window for the project, confirm the correct Package source is selected in the dropdown. Visual Studio will use whichever source responds first, so if a source is offline or blocked, loading can hang. For more details on how Visual Studio uses sources, see the Package sources section.
    1. Check for NU1101 / missing packages If the project is referencing packages that cannot be found on any configured source, Visual Studio may appear to hang while resolving them.
    • In Solution Explorer, expand Dependencies > Packages for the class library and confirm the package IDs and versions are valid.
    • Make sure the packages exist on the configured sources and that the IDs and versions are correct.
    • If using Semantic Versioning 2.0.0 packages, ensure the V3 feed https://api.nuget.org/v3/index.json is configured as a source. When packages truly cannot be found, NuGet raises NU1101. The documented fix is to correct the package ID/version and/or configure the right sources in NuGet.Config.
    1. Clear NuGet caches Corrupted or stale cache entries can cause package operations to hang.
    • Go to Tools > NuGet Package Manager > Package Manager Settings.
    • On the General page, select Clear NuGet local resources.
    • Wait for the operation to complete (cannot be cancelled). Check the Output window (Show output from: Package Manager) for any errors. This clears http-cache, global-packages, temp, and plugins-cache folders and often resolves stuck restore or loading behavior.
    1. Try restore from command line If the UI still hangs, try restoring via CLI to see if errors are surfaced:
    • Open a Developer Command Prompt in the solution folder.
    • Run nuget restore or dotnet restore (depending on project type).
    • If errors appear (for example, missing packages or sources), fix them as in step 2.
    1. Confirm project package format
    • In Visual Studio, open Tools > Options > NuGet Package Manager > General.
    • Check the Default package management format (PackageReference vs packages.config).
    • For SDK-style projects, PackageReference is recommended and better for dependency resolution.
    1. Offline / restricted network scenarios If working without internet or behind a strict firewall, ensure a reachable local/enterprise feed is configured, or use an offline package source as described in the NuGet FAQ for working without internet connectivity.

    If, after these steps, the package list still never loads, collect the Package Manager output (from the Output window) and check for timeouts or source errors; those messages usually indicate which source or package is causing the hang.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.