Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best place to put third-party DLLs for referencing

I'm working on a project that is stored in SVN. The project has a dependency on a third-party DLL, so it will need to have a reference to that DLL.

Where is the best place to store this DLL so that anyone who opens the project from SVN can compile it?

like image 248
Pavel Tarno Avatar asked Dec 11 '10 13:12

Pavel Tarno


People also ask

Should DLLs be in source control?

Some companies have a policy to put commonly used assemblies (DLL's) into source control. If you own the source code, this should never be done. These assemblies should be built during the build process.

What is a third party DLL?

Third party DLLs are libraries created by other organisation outside of yours. You can use these third party DLLs by putting them into a folder in your solution and then creating a reference to it (Project-> Right Click-> Add Reference). Once you have the DLL, that DLL will have a namespace.

How do I use a third party DLL file in Visual Studio C#?

Right-click on References and select Add Reference... This will bring up the Add Reference dialog. Click on the Browse tab then navigate to the DLL you want to reference and click Ok to add the reference to your Project.


1 Answers

Usually I create a lib subfolder to the root and place all third-party assemblies there. Then all the projects reference the assemblies from this location. That way the project is self-contained and the third-party assemblies are versioned along with the source code.

like image 192
Darin Dimitrov Avatar answered Oct 04 '22 12:10

Darin Dimitrov