簡體   English   中英

nuget.config和gui設置之間是否存在連接?

[英]Is there a connection between nuget.config and gui settings?

嘗試生成構建時,出現以下錯誤:

1 error(s), 0 warning(s)
$/source control my solution....../Web.sln - 1 error(s), 0 warning(s), View Log File
 D:\Builds\.....zWeb\.nuget\NuGet.targets (93): The underlying connection was closed: An unexpected error occurred on a send.

我在這里都配置存儲庫URL: 在此處輸入圖片說明

並在NuGet.config文件中:

在此處輸入圖片說明

我嘗試了以下方法:

  1. 嘗試了多個網絡連接(以排除防火牆問題)
  2. 重新啟動VS並重新安裝NuGet和所有軟件包
  3. 清洗,重建
  4. 更改了downloadnuget設置

我究竟做錯了什么? 我該如何構建?

如果相關,這是我的nuget.targets文件。

嗨,嘗試將文件nuget.config放在解決方案的根目錄中,例如

x:\\ SolutionFolder \\ nuget.config x:\\ SolutionFolder \\ Web.sln

然后將nuget.config更改為

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <config>
    <add key="repositoryPath" value="packages" />
  </config>
  <packageSources>
    <add key="Your NuGet" value="\\YourServer\Nuget Gallery" />
    <add key="nuget.org" value="https://www.nuget.org/api/v2/" />
  </packageSources>
</configuration>

repositoryPath相對於nuget.config文件本地化,請創建此網絡共享,並確保您的使用有權訪問它

<add key="Your NuGet" value="\\YourServer\Nuget Gallery" />

您在本地和構建服務器上使用什么tfs版本和Visual Studio版本?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM