将可视化工作室项目中的每个依赖项都打包出去 [英] Pack every dependency in a visual studio project to send easily

查看:203
本文介绍了将可视化工作室项目中的每个依赖项都打包出去的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我遇到了一个问题,我在几个依赖关系的大C ++项目中工作,我需要把这个项目发送给一个朋友,所以他可以看看它并进行调试。

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.

有没有办法打包整个项目,包括项目使用的所有依赖项(boost,python ...),所以获得它的人不必放弃时间下载依赖关系并设置路径到libs等等。

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??

干杯

推荐答案

我通常做的是构建一个包含我需要的一切的解决方案文件夹。当同事需要继续编码该解决方案时,他只需复制整个解决方案文件夹,并使用VisualStudio运行.sln。

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 该解决方案文件夹通常非常大,因为它包含编译和运行项目所需的一切。

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

然后,您配置每个项目以获取相对于.proj文件是:

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:

这篇关于将可视化工作室项目中的每个依赖项都打包出去的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆