[英]Set directory structure for all projects in a Visual Studio solution?
I would like to define paths for include, linking and binary output for all projects in my solution in a consistent manner. 我想以一致的方式定义解决方案中所有项目的包含,链接和二进制输出的路径。
The solution folders and projects are already created. 解决方案文件夹和项目已创建。 Is there an automated way, to set relative output directories and include directories for all projects at once, or preferably, on a solution level? 是否有一种自动的方法来设置相对输出目录并同时(最好是在解决方案级别)设置所有项目的目录?
For example, my current directory structure follows this. 例如,我当前的目录结构如下。
repository (solution)
├─ README.md
├─ dependencies (solution folder)
│ └─ name (several projects)
│ ├─ *.h, *.cpp
│ └─ binary (*.dll or *.lib)
│ ├─ debug
│ └─ release
├─ managers (solution folder)
│ └─ name (several projects)
│ ├─ *.h, *.cpp
│ └─ binary (*.dll or *.lib)
│ ├─ debug
│ └─ release
├─ system (project)
│ ├─ *.h, *.cpp
│ └─ binary (*.dll or *.lib)
│ ├─ debug
│ └─ release
├─ modules (solution folder)
│ └─ name (several projects)
│ ├─ *.h, *.cpp
│ ├─ binary
│ │ ├─ debug
│ │ └─ release
│ └─ *.jpg, *.3ds, ... (assets)
└─ application (project)
├─ *.cpp
└─ binary (*.exe)
├─ debug
└─ release
What you are looking for is the property manager. 您正在寻找的是物业经理。
See GUI to include a .prop file in a VS 2010 project? 看到GUI在VS 2010项目中包含.prop文件吗? for how to get to the property manager. 有关如何联系物业经理的信息。
You can create your own property set and include it in all of your projects. 您可以创建自己的属性集并将其包括在所有项目中。 Once you change something in the "global property set" all projects will be changed. 一旦更改了“全局属性集”中的某些内容,所有项目都将被更改。
EDIT: One more link to how property manager works: http://msdn.microsoft.com/en-us/library/ms173410%28v=vs.90%29.aspx 编辑:物业管理器如何工作的另一个链接: http : //msdn.microsoft.com/zh-cn/library/ms173410%28v=vs.90%29.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.