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

后端 未结 5 1563
栀梦
栀梦 2021-02-19 21:16

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 pro

5条回答
  •  春和景丽
    2021-02-19 21:54

    I typically put it in a Lib folder within my Visual Studio project solution folder. I would also create sub folders all the way to indicate whether the dll is for a 32 bit or 64 bit build and also which version of Visual Studio was used to build it. So something like this: Lib\WIN32\VC2015\ . Then in the Project Properties of the project, under the Debugging Configuration Property, I set Environment to

    PATH=$(SolutionDir)Lib\WIN32\VC2015;%PATH%

    By doing this, I can have separate dll folders for different project configurations if I want to and also the dll files are in a good place to check into source control as well.

提交回复
热议问题