Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where should i put dll file(that i use in my project)

Im setting up a svn repository and wondering where i should put the dll files.

What Ive currently done is put them in the /bin/debug folder and then link them in my project file in visual studio.

is this the way to do it?

like image 283
Jason94 Avatar asked Dec 17 '10 08:12

Jason94


People also ask

Where should DLL files be placed?

Dll files are located in C:\Windows\System32.

How do I use a DLL file?

Once you find the folder, hold the Shift key and right-click the folder to open the command prompt directly in that folder. Type "regsvr32 [DLL name]. dll" and press Enter. This function can add the DLL file to your Windows Registry, helping you access your DLL file.


2 Answers

I presume you are asking about third party dll files, because the output (exe/dll) files generated by the project are better left unmanaged by SVN, because they are regenerated on each and every build.

What I usualy do is create a Lib folder, that is on the top level of my source tree, and put all needed references there, usually in additional folder divided by tool or by functionality (logging, emailing, apis, etc, etc...)

like image 181
SWeko Avatar answered Oct 05 '22 07:10

SWeko


You should not put anything from the bin/Debug or bin/Release in your source control. If you do that, you will lose them when you clean your solution or your projects. What you have to do is create a folder, within the solution folder for example, and reference the dlls in your projects. Any third-party dll that is in the references of a project will be copied to the bin/Debug or bin/Release folder when the project is compiled.

like image 34
Evren Kuzucuoglu Avatar answered Oct 05 '22 06:10

Evren Kuzucuoglu