Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cake NuGetRestore找不到nuget.exe_Nuget_Cakebuild - Fatal编程技术网

Cake NuGetRestore找不到nuget.exe

Cake NuGetRestore找不到nuget.exe,nuget,cakebuild,Nuget,Cakebuild,我已经创建了简单的.NET5控制台应用程序,它可以使用“dotnet还原”和“dotnet运行”成功运行。应用程序正在使用一个包Newtonsoft.Json 我想使用NuGetRestore()还原NuGet包,但结果是“找不到NuGet.exe”。 我在1.1.0版和默认配置中使用Cake.NET工具 据我记忆所及,之前我在使用Cake时,版本1.0.0 nuget.exe被下载到“工具”文件夹 我错过了什么?如何确保Cake下载/提供nuget.exe 为了将NuGet工具下载到tools

我已经创建了简单的.NET5控制台应用程序,它可以使用“dotnet还原”和“dotnet运行”成功运行。应用程序正在使用一个包Newtonsoft.Json

我想使用NuGetRestore()还原NuGet包,但结果是“找不到NuGet.exe”。 我在1.1.0版和默认配置中使用Cake.NET工具

据我记忆所及,之前我在使用Cake时,版本1.0.0 nuget.exe被下载到“工具”文件夹

我错过了什么?如何确保Cake下载/提供nuget.exe


为了将NuGet工具下载到
tools
文件夹,您需要在Cake构建脚本中包含
NuGet.CommandLine
包。e、 g

#tool nuget:?package=NuGet.CommandLine&version=5.9.1
相关信息:


为了将NuGet工具下载到
tools
文件夹,您需要在Cake构建脚本中包含
NuGet.CommandLine
包。e、 g

#tool nuget:?package=NuGet.CommandLine&version=5.9.1
相关信息:


    • 蛋糕本身从未下载过nuget.exe。在特定的条件下,系统会执行此操作。不下载nuget.exe,您需要通过更新引导程序、使用构建脚本中的或Cake之外的任何其他机制来确保它可用。

      Cake本身从未下载过nuget.exe。在特定的条件下,系统会执行此操作。不下载nuget.exe,您需要通过更新引导程序、使用构建脚本中的或Cake之外的任何其他机制来确保它可用