我有一个包含300 .h
/ .cpp
的单个项目。
以下是我的项目特色: -
.h
/ .cpp
个文件在解决方案资源管理器中分为许多不同的 过滤器 。 大多数#include
沿着过滤器往往是向上,即较低的文件倾向于#include
某些上层文件,但反之亦然。
例如,某些utility
往往包含core
中的某些文件。 (见下面的结构)
我的所有.h
/ .cpp
目前都在同一个(Window-Explorer)系统 文件夹 。
这是该项目的简化版本。
#1
是现有代码,而#2
只是未来计划。
core
- math library (i.e. it is in a sub-filter)
- fast interpolation
- etc
utility $
- #1
- B1.h B1.cpp
- B2.h B2.cpp
- (#2) <--- currently not exist
- B1.h B1.cpp (same name but different content)
- B3.h B3.cpp (different name)
my graphic code / my physic code
game
- game engine
- game library
- game content $
- #1
- C1.h C1.cpp
- C2.h C2.cpp
- (#2) <--- currently not exist
- C1.h C1.cpp (same name but different content)
- C3.h C3.cpp (different name)
cover loop
- main.cpp
我计划对所有#2
个文件进行编码,但不确定如何配置我的项目,以及保留#2
个文件的位置。
我想要轻松地交换/删除项目#1
(#2
和$
内的过滤器utility
vs game content
中的所有文件。
更具体地说,我想要类似的东西: -
#1
但没有#2
个文件中的所有文件一样。 #2
但没有#1
个文件中的所有文件一样。 $
内添加新文件,我将有办法指出哪个配置( X / < strong> Y )它应该驻留在。$
,intellisense)会很聪明,就像它只考虑当前配置中的适当文件一样( X / Y )。 我应该如何配置我的项目?
Visual Studio中是否有任何类似的功能?
我不认为只创建2个项目就可以满足上述要求。
我考虑过使用存储库进行交换,但这似乎是一项不适合此任务的工具。
类似的问题只涉及inherit project setting。