码迷,mamicode.com
首页 > 其他好文 > 详细

How to add the custom nuget feed to TeamCity build?

时间:2021-06-24 18:32:12      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:ons   mac   app   store   spec   strong   machine   oca   his   

The NuGet package sources are configured through Visual Studio, but they‘re stored in a per-user configuration file, found at c:\Users\$USER\AppData\Roaming\NuGet\NuGet.config. The entry for the TeamCity package source needs to be added to the config file of the build agent user that‘s running your builds.

https://stackoverflow.com/questions/14548324/how-to-add-the-custom-nuget-feed-to-teamcity-build

  1. On your local machine, open the Nuget.config file for your user
  2. Copy the entry for the TeamCity package source to the clipboard
  3. On the build agent, open the NuGet.config file for the user that‘s executing your TeamCity builds
  4. Paste in the TeamCity package source entry. Save & quit.
  5. Run the build again. It should now be able to find the package.

EDIT: ladenedge documents a good solution that didn‘t exist when I originally answered this question. The solution is especially useful if you don‘t have admin access to the build agent or want to configure package sources on a per-project basis.

How to add the custom nuget feed to TeamCity build?

标签:ons   mac   app   store   spec   strong   machine   oca   his   

原文地址:https://www.cnblogs.com/chinasoft/p/14926892.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!