如何让项目从 VS2013 中的另一个项目继承它的设置? [英] How to make project inherit it's settings from another project in VS2013?

查看:21
本文介绍了如何让项目从 VS2013 中的另一个项目继承它的设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个 Native C++ 项目,该项目从同一解决方案中的另一个 Native C++ 项目继承其设置,因此如果我要更改基础项目的设置,它将反映在派生项目中.

I want to create a Native C++ project which inherits it's settings from another Native C++ project within the same solution, so if I were to change the settings from the base project, it will be reflected in the derived project.

这可能吗?我使用继承这个词是因为我在项目设置中看到了这个词,但我不确定它是从哪里继承的.

Is this possible? I use the word inherit because I see that in the project settings, though I'm not sure where it's inheriting from.

推荐答案

项目设置共享通过属性表完成.

Project settings sharing is done via Property Sheets.

转到查看"->属性管理器",右键单击您的项目之一并选择添加新项目属性表...".为它选择一些公共位置,所有其他项目都可以轻松访问该位置(靠近解决方案文件的位置即可).

Go to View -> Property Manager, right-click on one of your projects and select "Add New Project Property Sheet...". Choose some common place for it, that is easily accessible by all other projects (somewhere near solution file will do).

双击该新属性表并设置您希望项目共享的任何选项.现在您可以通过添加现有属性表..."将此属性表添加到任何其他项目.

Double-click on that new property sheet and set whatever options you want your projects to share. Now you can add this property sheet to any other project via "Add Existing Property Sheet...".

这篇关于如何让项目从 VS2013 中的另一个项目继承它的设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆