Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where do you put your 3rd party libraries?

Tags:

I've got a bunch of .dll assemblies, such as HtmlAgilityPack and MoreLinq. Where am I supposed to put these files? I usually toss them somewhere in my Projects folder, but then I'm always digging around for them. Is there a standard place to put them?

like image 760
mpen Avatar asked Oct 09 '10 19:10

mpen


People also ask

Which file is used to include the third party libraries?

Third-party libraries A third-party (or “contributed”) library is a chunk of Javascript code, usually contained in a single . js file, designed to work with p5.

Is it good to use third party libraries?

The most important benefit of using third-party libraries is that it saves you time as you do not need to develop the functionality that the library provides. Instead, you can focus on the core business logic of your app: the features that really matter.

Where should I put libraries Linux?

By default, libraries are located in /usr/local/lib, /usr/local/lib64, /usr/lib and /usr/lib64; system startup libraries are in /lib and /lib64. Programmers can, however, install libraries in custom locations. The library path can be defined in /etc/ld.

What is third party library?

In programming, third-party software is a reusable component developed by a body other than the original vendor of the development platform. In mobile game apps, third-party libraries might be an advertising software developer kit (SDK) or a crash reporter.


1 Answers

There's no standard place to put them, but make sure you:

  • Put them in one place
  • Include them in source control.

I put all my required dll's in a top level directory in my solution called "Dependencies", parallel to the project folders. I have them in source control such that when new developers check out the solution, it all compiles and works right off. It's the only way to go.

I include only the .dll files absolutely needed. This keeps it light, which is good, but then when I find some other part of MVC Contrib or whatever that I need, I have to go find the unzipped directory, which might not even be on my computer! Others put entire library directories (readme.txt and all) as part of their source control linked to the solution. This ensures you and future developers will have everything they need, but adds a little dead weight. Either is a good strategy.

like image 101
Patrick Karcher Avatar answered Nov 27 '22 19:11

Patrick Karcher