How to make project inherit it's settings from

2019-09-12 16:44发布

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.

2条回答
该账号已被封号
2楼-- · 2019-09-12 17:28

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...".

查看更多
家丑人穷心不美
3楼-- · 2019-09-12 17:29

It is inheriting from the solution. If you have both projects in the same solution then you can specify some of settings in the solution and have the projects inherit from the solution. You can then change the a setting in the solution and it be reflected in both projects.

查看更多
登录 后发表回答