Where to store external DLL files?

前端 未结 8 1786
挽巷
挽巷 2020-12-23 13:26

In my project I\'m using some third-party libraries. I include them using the references folder in Visual Studio.

But where should I save the DLL files? They are ref

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-23 13:56

    This is what I do:

    • Create a lib folder at the solution level
    • Download and copy all my third-party DLL files into there
    • Reference from the lib folder
    • Put all those DLL files in the source control. I am using Subversion, and I add them manually but this is one-off.

    You can also add a solution folder and add them there.


    UPDATE 2012-12-19

    The answer above was when NuGet was in infancy. FWIW, my approach where we have NuGet items:

    1. Do as above for plain DLL file dependencies (where they don't have a NuGet pkg)
    2. Enable "Package Restore" for the solution
    3. Change packages.config file if needed to lock down the version to a particular package
    4. Do not store the package themselves in the version control system (set ignore for Git, Mercurial, etc.)

    I actually use NuGet for managing even internal dependencies and have a private feed.

提交回复
热议问题