久久久久久久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精品久久久久久宅男 | 中文字幕av在线播放 | 国产一及片 | 在线一区 | 国产一区二区欧美 | 饥渴放荡受np公车奶牛 | 成人在线精品 | 欧美不卡一区二区三区 | 精品一区二区免费视频 | 久久久久久久久久国产精品 | 青青在线视频 | 日韩精品视频网站 | 精品久久视频 | 久久机热这里只有精品 | 久久免费国产 | 91av在线看 | 依人在线 | 黑人黄色一级片 | 四虎久久| 午夜精品一区二区三区在线视频 | 韩国精品一区 | 国产一区精品视频 | 成年人小视频 | 91免费国产 | 久久99精品久久久久久水蜜桃 | 欧美午夜精品 | 国 产 黄 色 大 片 | 欧美日韩亚洲一区 | 欧美日韩成人一区二区三区 | 亚洲欧美日韩精品 |