Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Where is the fallback package folder for nuget?


Asked by Mohamed Logan on Dec 08, 2021 FAQ



NuGet.Packaging.Core.PackagingException: Unable to find fallback package folder 'C:\Program Files (x86)\Progress\ToolboxNugetPackages'. Welcome to MSDN forum. I may need to confirm something with you: #1. Did you perform some actions before building your program? #2. Did you install some NuGet packages? #3.
In this manner,
None of the nuget.config files on my machine contain anything related to the fallback folder. I don't have any environment variables set that start with NuGet*. My VS offline package cache is a similar folder, but without the fallback:
Also, C:\Program Files (x86)\Microsoft SDKs\NuGetPackagesFallback\ is passed through dotnet sdk to NuGet and I'd expect this folder to be always present. Did you explicitly deleted this folder? and what's the dotnet sdk version ( dotnet.exe --info )?
In respect to this,
globalPackagesFolder (projects using PackageReference only) The location of the default global packages folder. The default is %userprofile%\.nuget\packages (Windows) or ~/.nuget/packages (Mac/Linux). A relative path can be used in project-specific nuget.config files.
Consequently,
There are two locations for the nuget.config file: in a .nuget folder inside your solution folder and directly in the solution folder (or any of its parent folders) The location that is accepted by the latest versions of NuGet is directly in the solution folder.