久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

代理背后的 NuGet

NuGet behind a proxy(代理背后的 NuGet)
本文介紹了代理背后的 NuGet的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我發現 NuGet 允許配置代理設置,因為 1.4版本(2011 年 6 月).但是,我找不到任何命令行示例.

I figure out that NuGet allows proxy settings configuration since 1.4 version (June 2011). But, I can't find any command line example.

我正在嘗試運行一些構建,但 NuGet 無法連接.

I'm trying to run some build and NuGet can't connect.

如何在命令行配置代理設置?

How do I configure the proxy settings on the command line?

推薦答案

這是我為使用 NTLM 身份驗證的公司代理所做的工作.我下載了 NuGet.exe 然后運行以下命令(我在CodePlex 上本次討論的評論):

Here's what I did to get this working with my corporate proxy that uses NTLM authentication. I downloaded NuGet.exe and then ran the following commands (which I found in the comments to this discussion on CodePlex):

nuget.exe config -set http_proxy=http://my.proxy.address:port
nuget.exe config -set http_proxy.user=mydomainmyUserName
nuget.exe config -set http_proxy.password=mySuperSecretPassword

這將以下內容放在位于 %appdata%NuGet 的我的 NuGet.config 中(映射到 C:UsersmyUserNameAppDataRoaming 在我的 Windows 7 機器上):

This put the following in my NuGet.config located at %appdata%NuGet (which maps to C:UsersmyUserNameAppDataRoaming on my Windows 7 machine):

<configuration>
    <!-- stuff -->
    <config>
        <add key="http_proxy" value="http://my.proxy.address:port" />
        <add key="http_proxy.user" value="mydomainmyUserName" />
        <add key="http_proxy.password" value="base64encodedHopefullyEncryptedPassword" />
    </config>
    <!-- stuff -->
</configuration>

順便說一句,這也解決了我的問題,即 NuGet 僅在我第一次點擊 Visual Studio 中的包源時才工作.

Incidentally, this also fixed my issue with NuGet only working the first time I hit the package source in Visual Studio.

請注意,一些嘗試過這種方法的人通過評論報告說他們已經能夠省略從命令行設置 http_proxy.password 鍵,或者在之后刪除它 -配置文件中的事實,并且仍然能夠跨代理使用 NuGet 功能.

Note that some people who have tried this approach have reported through the comments that they have been able to omit setting the http_proxy.password key from the command line, or delete it after-the-fact from the config file, and were still able to have NuGet function across the proxy.

但是,如果您發現必須在 NuGet 配置文件中指定您的密碼,請記住,您必須從命令行更新存儲在 NuGet 配置中的密碼.更改您的網絡登錄,如果您的代理憑據也是您的網絡憑據.

If you find, however, that you must specify your password in the NuGet config file, remember that you have to update the stored password in the NuGet config from the command line when you change your network login, if your proxy credentials are also your network credentials.

這篇關于代理背后的 NuGet的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Is there a C# library that will perform the Excel NORMINV function?(是否有執行 Excel NORMINV 函數的 C# 庫?)
Select x random elements from a weighted list in C# (without replacement)(從 C# 中的加權列表中選擇 x 個隨機元素(無需替換))
Create a summary description of a schedule given a list of shifts(給定輪班列表,創建時間表的摘要描述)
C# Normal Random Number(C# 普通隨機數)
Standard deviation of generic list?(通用列表的標準偏差?)
AsyncCTP: Creating a class that is IAwaitable(AsyncCTP:創建一個 IAwaitable 的類)
主站蜘蛛池模板: 亚洲福利免费 | 国产一级片精品 | 欧美精品第一页 | 国产精品爱久久久久久久 | 99在线精品视频 | 亚洲人成人一区二区在线观看 | 日韩午夜| 一区二区三区 在线 | 麻豆久久久久久久久久 | 国产在线一区二区 | jlzzjlzz欧美大全 | 91精品国产综合久久久久久丝袜 | 国产一区二区三区四区hd | 看片91| 精品无码久久久久国产 | 中文字幕一区二区视频 | 久久久久国产一区二区三区四区 | 九九色综合 | 久在线视频 | 大象一区 | 欧美日韩1区2区 | 久久精品国产免费一区二区三区 | 亚洲手机视频在线 | 欧美一区二区三区四区视频 | 国产一区 日韩 | 亚洲国产一区二区三区 | 亚洲人成一区二区三区性色 | 日韩电影免费在线观看中文字幕 | 老司机成人在线 | 喷水毛片| 欧美一区二区三区小说 | 欧美日韩大陆 | 亚洲精品一区二区 | 99精品久久 | 黑人巨大精品欧美一区二区免费 | 亚洲天堂久久 | 天堂va在线 | 欧美日本在线观看 | 亚洲a视频 | 色综合久 | 一级毛片,一级毛片 |