NuGet 还原与 NuGet 安装程序 [英] NuGet restore Vs NuGet installer

查看:41
本文介绍了NuGet 还原与 NuGet 安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 TFS 2015.我想在构建时恢复 nuget 包.在定义我的构建定义时,我找到了名为 NuGet restore 的NuGet restore"任务.

但是,我发现在我研究恢复 nuget 包的方法时,其他人提供的解决方案中使用了名为 NuGet restore 的NuGet Installer"任务.我找不到NuGet 安装程序".是否仅在 VSTS 中可用,而在 TFS 2015 中不可用?

谁能告诉我有什么区别?

解决方案

默认情况下 TFS 2015 中的 NuGet 安装程序 任务和 TFS 2017 及更高版本中的 NuGet 还原 任务(包括VSTS)具有相同的功能来恢复解决方案的包.但是 TFS 2017 及更高版本中新的NuGet Restore 任务更加灵活且功能更丰富,它也有不同的版本.

名称NuGet Installer"是NuGet Restore任务的显示名称,在TFS 2017及更高版本包括VSTS中,我们可以自定义显示名称.在 TFS 2015 中,我们还可以编辑显示名称,但它们的显示方式似乎不同.

结论:不要专注于我们可以自定义的任务或显示名称.只关注功能.有关详细信息,请参阅

I am using TFS 2015. I want to restore nuget packages on build. while defining my build definition, I find "NuGet restore" task with name NuGet restore.

But, I find that "NuGet Installer" task with name NuGet restore is used in solutions provided by other people while I was researching at the ways to restore nuget package. I cannot find "NuGet Installer". is it available only in VSTS and not in TFS 2015?

can anyone please tell me the difference?

解决方案

By default the NuGet Installer task in TFS 2015 and NuGet Restore task in TFS 2017 and later version (including VSTS) have the same function to restore the packages for solutions. But the new NuGet Restore task in TFS 2017 and later version is more flexible and feature-rich, it also has different versions.

The name "NuGet Installer" is the display name of the NuGet Restore task, in TFS 2017 and later version inculding VSTS we can custom the Display name. And in TFS 2015 we can also edit the display name, but seems they shown in different ways.

Conclusion : Do not focus on the task or display name as we can custome it. Just focus on the functions. See Package: NuGet task for details.

这篇关于NuGet 还原与 NuGet 安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆