visual-studio - 是一种在 Visual Studio 中重置 nuget 超时的方法吗?

标签 visual-studio nuget

我的网络受到我公司的一些安全协议(protocol)的限制,因此访问外部站点会很慢。因此,当我安装一些大型 nuget 包时,我会遇到超时错误:

has timed out after 100000ms.



所以我想设置 nuget 超时,以便我可以按照自己的意愿重试?

我不知道如何设置超时,所以如果有人可以帮助我,我将不胜感激。

最佳答案

Is a way to reset nuget timeout in Visual Studio?



超时时间是 nuget 客户端的默认超时时间,.我不相信有办法增加超时。

作为解决方法,您可以尝试使用 VPN 或在本地设置自己的 NuGet 存储库,这应该是一个很好的建议:

设置本地馈送的步骤:
  • 创建本地文件夹,例如“D:\LocalServer”
  • 将此路径添加到包源,Tools->Options->NuGet Package Manager->Package Sources。

    enter image description here
  • 从 nuget.org 下载包 Microsoft.Net.Native.SharedLibrary,然后您可以从本地提要将该包安装到您的项目中。
  • 关于visual-studio - 是一种在 Visual Studio 中重置 nuget 超时的方法吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48862274/

    相关文章:

    c# - 注入(inject)和 WebAPI : Getting started after install from NuGet

    .net - 如何在 Visual Studio 2013 中为经典 ASP 启用智能感知和语法突出显示

    asp.net-mvc - 我可以避免使用 NuGet 检查 MVC3 项目的 bin 文件夹吗?

    asp.net mysql sql server 2008安装

    c++ - VSE(visual studio enterprise)2015 上的 C++ 中的 ShellExecute 不起作用

    azure-devops - 在 Azure DevOps 构建管道中传递 NuGet 'Pack' 参数

    NuGet "Failed to generate binding redirects for My Project"错误 "Object reference not set to an instance of an object."

    NuGet 包依赖项

    visual-studio - mstest - 无法获得类型错误

    c++ - 将输入管道输入到 c++ 程序中以在 Visual Studio 中进行调试