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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With