NU1101: Unable to find package cake.tool #3304
-
I started getting this error today, even though I upgraded to .NET SDK 5.0.202 which supposedly fixes NuGet restore.
https://github.com/Dotnet-Boxed/Templates/runs/2286810853?check_suite_focus=true |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Looks like a bug in the restore process that decided not to check nuget.org and instead is only looking at the offline packages source. You might want to try to drop a <?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration> |
Beta Was this translation helpful? Give feedback.
-
Another possible workaround, which can be added as one of the job steps: dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org --configfile $env:APPDATA\NuGet\NuGet.Config |
Beta Was this translation helpful? Give feedback.
Looks like a bug in the restore process that decided not to check nuget.org and instead is only looking at the offline packages source.
You might want to try to drop a
nuget.config
file in the root of the repo to see if that forces nuget.org to be searched: