【问题标题】:Set directory structure for all projects in a Visual Studio solution?为 Visual Studio 解决方案中的所有项目设置目录结构?
【发布时间】:2013-11-19 01:31:08
【问题描述】:

我想以一致的方式为我的解决方案中的所有项目定义包含、链接和二进制输出的路径。

已创建解决方案文件夹和项目。有没有一种自动化的方法,可以一次设置所有项目的相对输出目录和包含目录,或者最好在解决方案级别上?

例如,我当前的目录结构如下。

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

【问题讨论】:

    标签: c++ visual-studio project build-process directory-structure


    【解决方案1】:

    您正在寻找的是物业经理。

    请参阅GUI to include a .prop file in a VS 2010 project? 了解如何联系物业经理。

    您可以创建自己的属性集并将其包含在您的所有项目中。一旦您更改“全局属性集”中的某些内容,所有项目都将更改。

    编辑: 另一个关于物业经理如何工作的链接:http://msdn.microsoft.com/en-us/library/ms173410%28v=vs.90%29.aspx

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-11
      • 2017-06-05
      • 1970-01-01
      • 2013-02-27
      • 2012-08-14
      相关资源
      最近更新 更多