将包含/库目录和链接器参数传播到解决方案中的所有项目?

发布于 2024-12-23 00:30:16 字数 199 浏览 1 评论 0原文

我在 Visual Studio 2010 中的一个“解决方案”中拥有多个项目。所有这些项目都使用相同的链接器选项、目录等。这些设置独立存储在每个项目的属性中,这意味着我必须进入每个项目并为每个构建类型(调试/发布/等)设置它们。

无论如何,是否可以将这些设置放在一个位置,以便解决方案中的所有项目默认使用我的目录和链接器选项?如果这是一个因素的话,该语言是 C++。

I have several projects within a single "Solution," in Visual Studio 2010. All of these projects use the same linker options, directories, and so on. These settings are stored in the properties of each project independently, which means I have to go into each and set them for every build type (debug/release/etc).

Is there anyway to have these settings in a single place, so that all projects within the solution use my directories and linker options by default? The language is C++ if that's a factor.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

千と千尋 2024-12-30 00:30:16

创建一个属性表,将常用的配置属性放在属性表中,并使您的所有项目都从属性表继承。

Create a Property Sheet, place the common configuration properties in the Property Sheet, and have all of your projects inherit from the Property Sheet.

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