我想我会创建一个文件来将我最喜欢的应用程序安装到全新的 Windows Server 2008 r2 SP1 安装中。
我在尝试安装 ChocolateyGUI 时遇到了关于 .NET 4.0 和 Nuget 的错误,所以我想我会用 Chocolatey 安装 .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 中,还是有其他方法?