TFS生成不下载缺少的NuGet包TFS、NuGet

2023-09-04 02:37:53 作者:繁華若夢

我一直在试图建立我的构建服务器(团队基础服务)自动下载第三方库,成功打造,但我不知道如何做到这一点。

I've been trying to setup my build server (Team Foundation Service) to automatically download 3rd party libraries and successfully build, but I don't know how to do this.

有没有办法?

推荐答案

您需要启用你想建在构建机上的解包还原。这至少是我做得到的NuGet与团队建设工作。 这里有一个有关包的链接恢复和怎样建设过程中使用它 http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages

you need to enable package restore for the solution you want to build on the build machine. This is at least what I did to get NuGet to work with Team build. Here's a link about package restore and how to use it during build http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages