在TFS Build中添加Nuget任务

编程入门 行业动态 更新时间:2024-10-27 00:29:24
本文介绍了在TFS Build中添加Nuget任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我们正在开发框架上的mvc应用程序是4.6和TFS 2008 for code repository。由于我们有自定义nuget服务器托管的nuget包引用,我想从我们的nuget服务器恢复所需的包。

We are developing an mvc application on framework is 4.6 and TFS 2008 for code repository. Since we have nuget package references which is hosted in our custom nuget server, i want to restore the required packages from our nuget server.

由于我们正在使用TFS 2008,我们是否可以使用Nuget安装程序构建步骤中的任务?

Since we are uing TFS 2008, can we use Nuget installer task in the build step?

问候

推荐答案

您好,

您需要通过以下文章使用TFBuild设置包恢复下面:

You need to set up package restore with TFBuild by following article below:

https:// docs .microsoft / zh-cn / nuget / consume-packages / team-foundation-build

存储库的结构如下所示:

The structure of the repository looks as follows:

<项目> │ .gitignore │ .tfignore │ build.proj │ ├───src │ │ BingSearcher.sln │ │ │ └───BingSearcher │ │ App.config │ │ BingSearcher.csproj │ │ packages.config │ │ Program.cs │ │ │ └───性能 │ AssemblyInfo.cs │ └───工具 └───NuGet nuget.exe

<Project> │ .gitignore │ .tfignore │ build.proj │ ├───src │ │ BingSearcher.sln │ │ │ └───BingSearcher │ │ App.config │ │ BingSearcher.csproj │ │ packages.config │ │ Program.cs │ │ │ └───Properties │ AssemblyInfo.cs │ └───tools └───NuGet nuget.exe

在准备好必要的文件和工具之后,将Team Build配置为使用build.proj,然后它将在构建期间恢复包

After preparing the necessary files and tool, configure Team Build to use build.proj, then it will restore the package during the build

最好的问候,

更多推荐

在TFS Build中添加Nuget任务

本文发布于:2023-11-16 12:12:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1604167.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:TFS   Build   Nuget

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!