我遇到了同样的问题,得到了同样的错误:
error : Package <package> 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. [<path>]
我能够使用MSBuild /t:restore
代替来解决它dotnet restore
。
请参阅:https : //docs.microsoft.com/zh-cn/nuget/reference/msbuild- targets#restore-target