简体   繁体   English

在Visual Studio解决方案中为所有项目设置目录结构吗?

[英]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.

相关问题 在Visual Studio解决方案中设置所有项目的运行时库 - Set Runtime Library of all projects in Visual Studio solution 如何配置Qmake使用目录结构为项目中的源文件生成Visual Studio解决方案? - How to config qmake generating Visual Studio solution using directory-structure for source files in projects? Visual Studio解决方案:静态或共享项目? - Visual Studio Solution: static or shared projects? 在Visual Studio解决方案中链接两个项目 - Linking two projects in a Visual studio solution 使用cmake和visual studio在一个解决方案中的几个项目 - Several projects in one solution with cmake and visual studio 具有多个项目的visual studio解决方案无法编译 - visual studio solution with multiple projects doesnt compile 在多项目Visual Studio解决方案中以不同配置编译项目 - Compiling projects in different configurations in a multi-projects Visual Studio Solution 为所有项目配置OpenCV Visual Studio 2010 - configuring OpenCV for all projects Visual studio 2010 Visual Studio:解决方案中的某些项目不会生成.exe文件 - Visual Studio: some projects in solution don't generate .exe files c ++ visual studio 2008问题,在一个解决方案中有两个项目 - c++ visual studio 2008 issue with two projects in one solution
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM