2016-07-09 33 views
2

如何在我的Visual Studio Team Services構建過程中設置憑據以訪問我的私人MyGet供稿?由於它無法正常工作,所以我的構建開始失敗。我已經在線閱讀了一些內容,但是他們提到了使用nuget的舊方法,我使用了VS15的默認設置。如何在VSTS版本上設置myget憑證?

我讀過這些:

這裏的錯誤: enter image description here

回答

2

好吧,我想通了。 我解決的方法是:

  1. 創建本地文件nuget.config
  2. 使用的命令,我的私人飼料保存到文件[1]
  3. 添加到源代碼控制
  4. 集的NuGet。裏面VSO

[1]

nuget setapikey [apikey] -source [feedUrl] -configFile [configFilePath] 
nuget sources add|update -Name [name] -source [feedUrl] -User [username] -pass [password] -configFile [configFilePath] -StorePasswordInClearText 
我的生成定義配置文件路徑210