简体   繁体   English

TFS 2018构建NuGet推送

[英]TFS 2018 Build NuGet Push

I am trying to use the new NuGet Extension in TFS Build to push my package to the feed. 我正在尝试在TFS Build中使用新的NuGet扩展将程序包推送到提要。 My problem is that it creates a temporary config file and that config is empty. 我的问题是它创建了一个临时配置文件,并且该配置为空。 Does anyone know if this is copying the file from some location? 有人知道这是否是从某个位置复制文件吗?

2018-05-04T17:53:57.3567578Z Saving NuGet.config to a temporary config file. 2018-05-04T17:53:57.3567578Z将NuGet.config保存到临时配置文件中。

2018-05-04T17:53:57.3723827Z ##[warning]No package sources were found in the NuGet.config file at D:_work\\247\\Nuget\\tempNuGet_5662.config 2018-05-04T17:53:57.3723827Z ## [warning]在D:_work \\ 247 \\ Nuget \\ tempNuGet_5662.config的NuGet.config文件中找不到包源

Suggest you first double check if you have followed the demands of Arguments in Nuget task when Push NuGet packages 建议您先仔细检查是否在推送NuGet软件包时是否遵循了Nuget任务中的参数要求

Also set system.debug=true to Enable Verbose Debug Mode with more detail log info for troubleshooting. 还要将system.debug=true设置为启用详细调试信息的详细调试信息,以启用详细调试模式

Besides, downgrade your Nuget task version and try again. 此外,请降级您的Nuget任务版本,然后重试。 Take a look at this similar issue: Nuget restore uses temporary config that can change path of packages folder 看看这个类似的问题: Nuget restore使用临时配置,可以更改程序包文件夹的路径

I finally created a new feed. 我终于创建了一个新的提要。 That worked so I thought what could be different. 那行得通,所以我认为可能会有所不同。 So I then made my old feed's security match my new feed. 因此,我随后将旧Feed的安全性与新Feed匹配。 That corrected the issue. 那解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM