Best practice for storing and referencing DLL libraries

dllversion control

Often times a developer on my team will create a new Visual Studio project and reference a DLL somewhere on their local machine (e.g., C:\mydlls\homersimpson\test.dll). Then, when I get the project from the source control repository, I cannot build the project because I do not have the referenced dll in the exact same location on my machine.

What is the best practice for storing and referencing shared libraries?

Best Answer

I typically create a lib folder in my project, where I put the referenced dll's. Then I point the reference to the dll in the lib folder. This way, every developer can build the project after retrieving from source control.

If it's a project that was built in house, you could also add that project to your solution.

Related Topic