配置解决方案以在生成时还原 NuGet 包时出错。操作已超时

An error occurred while configuring the solution to restore NuGet packages on build. The operation has timed out

当我右键单击我的解决方案并单击 "enable nuget package restore"

我收到消息:

Configuring the solution to restore NuGet packages on build...

然后是错误:

An error occurred while configuring the solution to restore NuGet packages on build. The operation has timed out

它会是什么?

Nuget 现在宕机了,所以这就是为什么您的解决方案可能会出现这个问题。