I'm getting the following error during Cloud Build
"##[error]Cannot determine the packages folder to restore NuGet packages. Please specify either -PackagesDirectory or -SolutionDirectory."
I ran into this error verbatim after running nuget.exe restore
on a project that didn't actually reference any NuGet packages, however, within the project's directory sat a packages.config
file containing an entry to a package. This config file was not included or referenced by the project, it was just sitting in the directory.
Deleting the stray packages.config
file resolved the error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With