打包每个依赖在一个视觉工作室项目发送容易 [英] Pack every dependency in a visual studio project to send easily

查看:192
本文介绍了打包每个依赖在一个视觉工作室项目发送容易的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我遇到了一个问题多次,我在一个大型的C ++项目与几个依赖项工作,我需要发送项目给一些朋友,所以他可以看看它,并调试它。



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



干杯

解决方案

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



警告这个解决方案文件夹通常很大,因为它包含编译和运行项目所需的一切。



然后你配置每个项目来获取依赖相对于.proj文件是:






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

解决方案

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:

这篇关于打包每个依赖在一个视觉工作室项目发送容易的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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