gpt4 book ai didi

svn - 我还必须将第三方库二进制文件保留在源代码管理中吗?

转载 作者:行者123 更新时间:2023-12-03 08:58:46 25 4
gpt4 key购买 nike

现在,我正在使用NuGet添加/更新所需的引用,是否可以仅将packages.config添加到源代码管理中,并在构建时添加.dll?

通常,如this related question中所述,我将第三方依赖项存储在解决方案根目录下的文件夹中,并将其 checkin 源代码管理。

我们目前不使用任何自定义构建工具或脚本:只是VisualStudio的默认构建带有.sln文件。

最佳答案

是的你可以! http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages

The current NuGet workflow has always been to commit the Packages folder into source control. The reasoning is that it matches what developers typically do when they don't have NuGet: they create a ‘Lib' or ‘ExternalDependencies' folder, dump binaries into there and commit them to source control to allow others to build.

While this has worked fine for some users, we have also heard from many that committing packages into source control is not what they want to do. When using a DVCS like Mercurial or Git, committing binaries can grow the repository size like crazy over time, making cloning more and more painful. In fact, this has been one of the top requests on NuGet our issue tracker.

The good news is that NuGet now offers a workflow which goes a long way to solving this problem. It isn't 100% automated yet, but with some minimal pain you can set up your project to do this...

关于svn - 我还必须将第三方库二进制文件保留在源代码管理中吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4460838/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com