我以为我会创建一个文件来将我最喜欢的应用程序安装到新的Windows Server 2008 r2 SP1安装中。
我在尝试安装ChocolateyGUI时遇到了关于.NET 4.0和Nuget的错误,所以我想我会用Brewy安装.NET 4.0,因为它已在画廊中列出。
我仍然得到同样的错误。
C:\Users\me>cinst DotNet4.0
Chocolatey (v0.9.8.20) is installing DotNet4.0 and dependencies. By installing y
ou accept the license for DotNet4.0 and each dependency you are installing.
Execution of NuGet not detected. Please make sure you have .NET Framework 4.0 i
nstalled and are passing arguments to the install command.
At C:\Chocolatey\chocolateyinstall\functions\Run-NuGet.ps1:52 char:10
+ Throw <<<< $noExecution
+ CategoryInfo : OperationStopped: (Execution of Nu...nstall comm
and.:String) [], RuntimeException
+ FullyQualifiedErrorId : Execution of NuGet not detected. Please make sur
e you have .NET Framework 4.0 installed and are passing arguments to the i
nstall command.
我需要在Chocolatey工作之前手动将.NET 4.0安装到Windows中吗?还是有其他方法吗?
答案 0 :(得分:3)
.NET framework 4.0软件包是出于包装目的和未来可能的消费者而提供的。你不能用当前版本的chocolatey来安装它,因为它已经是巧克力已安装它的先决条件。
HTH