TFS 2015在构建时自动从定制nuget存储库更新包(TFS 2015 Automatically update packages from custom nuget repository on build)

我正在努力在工作中设置存储库。 我希望能够强制TFS构建在给定的解决方案中使用我们每个内部包的最新版本,而无需手动修改每个项目,而不是仅使用默认的包恢复行为。 我在网上看到了一些关于使用nuget.target执行此操作的事情,但无法从nuget的网站上找到支持文档。 只要最终结果是我的构建服务器最终会自动使用我们的软件包的最新版本,我就可以接受任何方法。 我们正在使用nuget的3.4.4版本。

I am working on setting up repository at work. I would like to be able to force the TFS builds to use the latest version of each of our in house packages in a given solution without having to modify each project manually, instead of just using the default package restore behavior. I have seen some things online about using nuget.target to perform this but could not find supporting documents from nuget's website. I am open to just about any approach as long as the ending result is that my build server will ultimately us latest version of our packages automatically. We are using version 3.4.4 of nuget.

最满意答案

正如Adriano Repetti所说的那样,当使用cmd线指令在构建服务器上进行nuget restore之后,将添加一个步骤来执行nuget更新。

The fix was to as Adriano Repetti said which was to add a step to perform nuget update after nuget restore was on the build server using the cmd line directives.

TFS 2015在构建时自动从定制nuget存储库更新包(TFS 2015 Automatically update packages from custom nuget repository on build)

我正在努力在工作中设置存储库。 我希望能够强制TFS构建在给定的解决方案中使用我们每个内部包的最新版本,而无需手动修改每个项目,而不是仅使用默认的包恢复行为。 我在网上看到了一些关于使用nuget.target执行此操作的事情,但无法从nuget的网站上找到支持文档。 只要最终结果是我的构建服务器最终会自动使用我们的软件包的最新版本,我就可以接受任何方法。 我们正在使用nuget的3.4.4版本。

I am working on setting up repository at work. I would like to be able to force the TFS builds to use the latest version of each of our in house packages in a given solution without having to modify each project manually, instead of just using the default package restore behavior. I have seen some things online about using nuget.target to perform this but could not find supporting documents from nuget's website. I am open to just about any approach as long as the ending result is that my build server will ultimately us latest version of our packages automatically. We are using version 3.4.4 of nuget.

最满意答案

正如Adriano Repetti所说的那样,当使用cmd线指令在构建服务器上进行nuget restore之后,将添加一个步骤来执行nuget更新。

The fix was to as Adriano Repetti said which was to add a step to perform nuget update after nuget restore was on the build server using the cmd line directives.