简体   繁体   English

包需要 NuGet 客户端版本...或更高版本

[英]Package requires NuGet client version ... or above

After I download my project from GitHub and try to compile it I am running into the issue of "package requires NuGet client version ... or above" but I am using Visual Studio 2017 with the latest NuGet version for that version.从 GitHub 下载我的项目并尝试编译它后,我遇到了“包需要 NuGet 客户端版本......或更高版本”的问题,但我正在使用 Visual Studio 2017 和该版本的最新 NuGet 版本。 The issue is fixed after building the package twice but is there a way that I could stop this from happening in the first place and have it so that these issues go away after the first compilation of the code?这个问题在构建包两次后得到解决,但是有没有办法让我首先阻止这种情况发生并让它在第一次编译代码后这些问题消失?

I had a similar problem while adding NUnit via Nugget Manager.通过 Nugget Manager 添加 NUnit 时,我遇到了类似的问题。 Instead of adding the package via Nuget Manager, I downloaded the framework's dll files from their website and add them as a reference to the project.我没有通过 Nuget Manager 添加包,而是从他们的网站下载了框架的 dll 文件并将它们添加为项目的引用。

If you still want to use the NuGet manager, you have to upgrade to a newer version of Visual Studio如果您仍想使用 NuGet 管理器,则必须升级到较新版本的 Visual Studio

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM