Nuget + NuGetPowerTools + Enable-PackageRestore = 代理背后的身份验证失败

标签 nuget

昨晚,在我不使用代理的家里,使用 NuGetPowerTools/Enable-PackageRestore 更新了 NuGet 存储库。
工作得很好。

进入办公室,我在以下条件下使用相同的存储库:

  • 在基于 VMWare 的 VM 中,
  • 使用桥接网络,
  • 今天重新安装了 NuGet,重新启动(确保我有最新版本)
  • 在 DEV 域(即 DEV\Me)中的帐户下运行
  • 通过需要corp域帐户(即CORP\Me)的代理访问外部世界
  • 即 9 的配置/Internet 选项/连接设置为:
  • 使用代理:
  • 地址:yadayada1
  • 端口:80
  • 绕过本地地址代理
  • 自动检测设置
  • 以上设置是正确的,因为我可以通过 IE9、Chrome 等访问网络。
  • 注意:可以列出和下载 Nuget 包……这只是新的构建过程不能。
  • 根据网络上的建议,我查看了 DevEnv.exe.config 并具有以下设置:
    - <system.net><settings><ipv6 enabled="true" /></settings></system.net>
  • 我也尝试将这些设置设为
  • <system.net><defaultProxy useDefaultCredentials="true"><proxy autoDetect="True" usesystemdefault="True" /></defaultProxy></system.net>以便 DevEnv.exe 回退到 IE 9 正在使用的相同连接设置。没有做。

  • 我得到的这一切是:

    ------ Build started: Project: XAct.Core, Configuration: Debug Any CPU ------ Please provide proxy credentials: UserName: Password: C:_Workspaces\XAct\CS.FF.XAct.Lib2.nuget\NuGet.targets(43,9): error : Cannot read keys > when either application does not have a console or when console input has been redirected > from a file. Try Console.Read. C:_Workspaces\XAct\CS.FF.XAct.Lib2.nuget\NuGet.targets(43,9): error MSB3073: The command ""C:_Workspaces\XAct\CS.FF.XAct.Lib2.nuget\nuget.exe" install "C:_Workspaces\XAct\CS.FF.XAct.Lib2\XAct.Core\XAct.Core\packages.config" -source "" -o "C:_Workspaces\XAct\CS.FF.XAct.Lib2\packages"" exited with code 1.



    在网络上的某个地方找到(但不幸的是再次丢失)一个线程,我看到 NuGet 开发人员在那里对其进行了抨击——指的是从他们的 TeamCity 下载最新版本(我无法访问/加入)——但该线程没有明确说明 Eureka !在底部。

    谢谢。

    最佳答案

    重申 Sky 和 ​​Pranav 所提到的 - 这个问题似乎在 NuGet 1.7 中得到了修复 - 参见 http://nuget.codeplex.com/workitem/1655 :

    pranavkm wrote Jan 31 at 8:17 PM

    Fixed in changeset 6c156e0dc214

    关于Nuget + NuGetPowerTools + Enable-PackageRestore = 代理背后的身份验证失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8175524/

    相关文章:

    Azure Artifacts 在尝试构建 Dockerfile 时给出未经授权的信息

    nuget - VS2015 - 'NuGetPackage' 包未正确加载

    c# - 运行 dnu Restore : The AddressFamily 117 is not valid for the System.Net.IPEndPoint 端点时出错,请改用 InterNetwork

    c++ - 在VS2019 C++跨平台程序中包含nuget包

    c# - 仅依赖项的空 Nuget 包

    visual-studio - 读取 NuGet.config 时出错

    c# - 如何在 Linux 上安装特定版本的 nuget (2.12)?

    c# - 安装 Nuget 包错误 "The path is not of a legal form"

    MSBuild NuGet.targets,Nuget.exe : Unable to read package from path 'blah.nupkg' error

    visual-studio - Nuget包管理器在VS2019中不显示包信息