管理非nuget dll和nuget包

编程入门 行业动态 更新时间:2024-10-28 16:30:28
本文介绍了管理非nuget dll和nuget包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大多数这些可能是第三方库,可能会有一些指导方针或建议来管理那些不在nuget上的图书馆。除非我们专门把它们放在nuget上,否则永远不会去nuget。

最好将这些dll与nuget用于存储下载的DLL的文件夹保持一致还是更好将它们保持在一起?

一旦我们整理出来,我们将会考虑移动到DVCS,并且可能会添加一个忽略文件来忽略整个包目录(并且可能添加排除这些非nuget dll或只是强制他们进行检查,如果他们有任何改变)。

解决方案

我的个人偏好(订单)

  • 创建一个包并将其添加到NuGet(如果许可允许)
  • 创建一个包并将其放在私有存储库中
  • 在解决方案中创建一个文件夹,将它们全部存储在re,将它们添加到源代码控制。不同的文件夹比nuget包文件夹,因为它是更清楚的是什么,我不添加nuget dll到源代码控制。
  • 对于1 &安培; 2我建议在构建中使用Restore Package,而不是将其存储在源代码控制中。

    我还强烈建议您不要从安装文件夹引用任何第三方控件GAC。

    Are there any guidelines or recommendations for managing libraries that aren't on nuget along with the packages that are.

    Most of these may be 3rd party libraries that may never go on nuget unless we specifically put them on.

    Is it best to keep these dlls out of the same folder that nuget uses to store its downloaded dlls or is it better to keep them together?

    We would be looking at moving to DVCS once we sort this out and would probably add an ignore file to ignore the whole packages directory (and possibly add exclusions for these non-nuget dlls or just force them to be checked in if they ever do change).

    解决方案

    My Personal Preferences (In Order)

  • Create a package and add it to NuGet (if licensing allows)
  • Create a package and put it in a private repository
  • Create a folder in the solution, store them all in there, add them to source control. Different folder than the nuget packages folder as it's clearer what it is and I don't add nuget dlls to source control.
  • For 1 & 2 i would recommend using Restore Package on build rather than storing it in your source control.

    I'd also highly recommend against referencing any 3rd party controls from install folders or the GAC.

    更多推荐

    管理非nuget dll和nuget包

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

    发布评论

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

    >www.elefans.com

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