vcpkg integrate project命令失败,error: nuget (vcpkg\downloads\tools\nuget-6.10.0-windows\nuget.exe) produced unexpected output when attempting to determine the version
失败尝试
网上已有的方法是更改cmakelists里面的版本语句
// 替换Version
//return extract_prefixed_nonwhitespace("NuGet Version: ", Tools::NUGET, std::move(output), exe_path);
return extract_prefixed_nonwhitespace("NuGet 版本: ", Tools::NUGET, std::move(output), exe_path);
但是遗憾的是编译后报错,折磨了我一天。
错误截图如下:
简单解决方案
前往nuget官网手动下载nuget.exe文件,并将其路径设置为全局变量。
官网网址:nuget
放置好后将对应路径设置加入环境变量。
最终解决问题