NuGet 无法找到包的版本 [英] NuGet unable to find the version of a package
本文介绍了NuGet 无法找到包的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
运行命令
nuget.exe restore .\MySolution.sln
给出这个错误:
无法找到包Microsoft.Net.Compilers"的1.0.0"版本.
Unable to find version '1.0.0' of package 'Microsoft.Net.Compilers'.
之前安装和恢复过的包,但不知何故损坏了.
where the package has previously been installed and restored, but it has somehow become corrupt.
推荐答案
原来只是通过
nuget.exe update -self
从 2.8.0 更新到 3.4.4 就足够了,并且该包现在可以正确恢复.
to update from 2.8.0 to 3.4.4 was sufficient, and the package now restores correctly.
这篇关于NuGet 无法找到包的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文