问题描述
我的 teamcity nuget 源中有一个包,由 teamcity 构建,但依赖的 tc 项目在包还原期间看不到它.
i have a package on my teamcity nuget feed, built by teamcity, but a dependent tc project cannot see it during package restore.
[14:05:02][exec] e:teamcity-buildagentwork62023563850993a7web.nuget uget.targets(88, 9):找不到包marklogicmanager40"的版本1.0.17.0"'.
[14:05:02][exec] e:teamcity-buildagentwork62023563850993a7web.nuget uget.targets(88, 9): unable to find version '1.0.17.0' of package 'marklogicmanager40'.
[14:05:02][exec] e:teamcity-buildagentwork62023563850993a7web.nuget uget.targets(88, 9):错误 msb3073:命令"e:teamcity-buildagentwork62023563850993a7web.nuget uget.exe"安装e:teamcity-buildagentwork62023563850993a7productmvcpackages.config"-来源"-requireconsent -solutiondir e:teamcity-buildagentwork62023563850993a7web"以代码 1 退出.
[14:05:02][exec] e:teamcity-buildagentwork62023563850993a7web.nuget uget.targets(88, 9): error msb3073: the command ""e:teamcity-buildagentwork62023563850993a7web.nuget uget.exe" install "e:teamcity-buildagentwork62023563850993a7productmvcpackages.config" -source "" -requireconsent -solutiondir "e:teamcity-buildagentwork62023563850993a7web "" exited with code 1.
请注意,nuget 命令行中的 source 参数为空.会不会是这个原因?
note that the source parameter in the nuget command line is empty. could this be the cause?
推荐答案
截至目前,nuget.targets 有以下方式来指定自定义提要:
as of today, nuget.targets has the following way to specify custom feed(s):
另一种选择是将 nuget.config 放在尊龙凯时的解决方案文件旁边:
another option is to put nuget.config next to the solution file:
亖呉?盀