NickIndie
❔ Can't restore public nuget packages while building docker image
[build 10/10] RUN dotnet publish -c release -o /app --no-restore:
#0 0.362 MSBuild version 17.5.0+6f08c67f3 for .NET
#0 0.796 /usr/share/dotnet/sdk/7.0.202/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1064: Package Microsoft.Extensions.Logging.Abstractions, version 7.0.0 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.
12 replies