Pack every dependency in a visual studio project to send easily

爷,独闯天下 提交于 2020-01-07 05:12:07

问题


So I have faced a problem several times where I'm working in a big C++ project with several dependencies and I need to send the project to some friend so he can take a look at it and debug it.

Is there any way to pack the whole project including every dependencies that the project is using (boost, python...) so the person who get it doesn't have to loose the time downloading the dependencies and setting up paths to libs and so on??

Cheers


回答1:


What I usually do is to build a Solution folder that has everything that I need. When a coworker needs to continue coding for that solution he simply copies the whole "Solution" folder and runs the .sln with VisualStudio.

Be warned that this Solution folder is usually very big, since it contains everything needed to compile and run the projects.

Then you configure each project to fetch the dependencies relatively to where the .proj file is:

And the folder structure for the above images would be:



来源:https://stackoverflow.com/questions/34909552/pack-every-dependency-in-a-visual-studio-project-to-send-easily

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!