Visual Studio 2010 中项目 (.vcproj) 属性的继承

发布于 2025-01-08 01:45:17 字数 591 浏览 4 评论 0原文

我的 IDE 是 Visual Studio 2010。我有一个包含 100 多个项目 (.vcproj) 的解决方案 (.sln)。语言是C++。该解决方案有两种配置:“发布”和“调试”。该解决方案有两个平台“Win32”和“x64”。我需要创建第三个配置,我们将其称为“Release_and_PDB”。 “Release_and_PDB”应等于“Release”,只不过它应生成 PDB 文件。将来“Release_and_PDB”应该始终等于“Release”,除了它应该生成 PDB 文件。我想我可以通过三个步骤来完成:

  1. 创建一个新的配置。

  2. 手动更改每个项目属性,添加 PDB 的路径和名称(在“链接器”、“调试”、“生成程序数据库文件”中)。

  3. 确保版本中的属性更改也将反映对 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:

  1. Create a new Configuration.

  2. Manually change every project property adding the path and name for the PDB (in Linker, Debugging, Generate Program Database file).

  3. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

单身情人 2025-01-15 01:45:17

您转到工具栏中的配置管理器 ->新->复制设置。

我想这就是你要找的。

在此处输入图像描述

You go to configurations manager in the toolbar -> new -> copy settings from.

I think that's what you're looking for.

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文