Visual Studio 2010 中项目 (.vcproj) 属性的继承
我的 IDE 是 Visual Studio 2010。我有一个包含 100 多个项目 (.vcproj) 的解决方案 (.sln)。语言是C++。该解决方案有两种配置:“发布”和“调试”。该解决方案有两个平台“Win32”和“x64”。我需要创建第三个配置,我们将其称为“Release_and_PDB”。 “Release_and_PDB”应等于“Release”,只不过它应生成 PDB 文件。将来“Release_and_PDB”应该始终等于“Release”,除了它应该生成 PDB 文件。我想我可以通过三个步骤来完成:
创建一个新的配置。
手动更改每个项目属性,添加 PDB 的路径和名称(在“链接器”、“调试”、“生成程序数据库文件”中)。
确保版本中的属性更改也将反映对 Release_and_PDB 配置的相同更改
:
我的问题 Visual Studio 是否有任何工具可以完成步骤 2,而无需手动更改任何(和每个)项目的属性?
b. Visual Studio 是否有任何工具可以继承项目属性来完成步骤 3,而无需手动更改 Release_and_PDB 中的属性?
My IDE is Visual Studio 2010. I have a solution (.sln) containing more than 100 Projects (.vcproj). The language is C++. The solution has two configurations: "Release" and "Debug". The solution has two Platforms "Win32" and "x64". I need to create a third configuration, let's call it "Release_and_PDB". "Release_and_PDB" should be equal to "Release" except in that it should generate the PDB files. In the future "Release_and_PDB" should be always equal to "Release" except in that it should generate the PDB files. I think I can do it in three steps:
Create a new Configuration.
Manually change every project property adding the path and name for the PDB (in Linker, Debugging, Generate Program Database file).
Ensure that a property change in the Release will also reflect the same change to the Release_and_PDB configuration
My questions:
a. Does Visual Studio have any facilities to get the step 2 done without the need of manually changing the properties of any (and every) project?
b. Does Visual Studio have any facilities for the inheritance of project properties to get step 3 done without the need to also manually change the property in Release_and_PDB?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您转到工具栏中的配置管理器 ->新->复制设置。
我想这就是你要找的。
You go to configurations manager in the toolbar -> new -> copy settings from.
I think that's what you're looking for.