运行命令
nuget.exe restore .\MySolution.sln
给出了这个错误:
Unable to find version '1.0.0' of package 'Microsoft.Net.Compilers'.
之前已安装并恢复该软件包,但不知何故已损坏。
最佳答案
结果只是通过更新 NuGet 版本
nuget.exe update -self
从 2.8.0 更新到 3.4.4 就足够了,现在包可以正确恢复。
关于.net - NuGet 无法找到包的版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38734040/