打开 nuget.exe 时未处理的异常



当我打开nuget命令行工具时,我收到以下异常,但我不知道为什么。

截图

C:tools>nuget.exe
Unbehandelte Ausnahme: System.NotSupportedException: Das angeforderte Sicherheit
sprotokoll wird nicht unterstützt.
   bei System.Net.ServicePointManager.set_SecurityProtocol(SecurityProtocolType
value)
   bei NuGet.CommandLine.Program.MainCore(String workingDirectory, String[] args
)
   bei NuGet.CommandLine.Program.Main(String[] args)

我没有安装任何Visual Studio版本,因为我尝试在没有Visual Studio的情况下创建一个.NET构建服务器。我尝试安装另一个.NET Framework,但是当我打开nuget.exe时,未处理的异常仍然存在。

你可以帮我吗?

Das angeforderte Sicherheitsprotokoll wird nicht unterstützt.

不支持所需的安全协议。这意味着您的Windows安装和.NET框架的组合不支持Nuget认为是他们选择的安全协议(据我所知,TLS 1.2(。

使用最近/受支持的 Windows 安装,了解最新的安全修补程序,并安装包含所有安全修补程序的 .NET Framework。

最新更新