Vs project property sheet

Source: Internet
Author: User

vs project property sheet
as projects in a solution grow more and more, the project setting management will be more and more complicated. modifying one by one will be hard work and easy to cause mistakes. luckily, VS has already provides us a way to manage such area work by "Property Manager" which can create/edit finally manage "project property sheet" thing.

1. several Concepts
-- Project property sheet
A project property sheet is. XML file with the extension. vsprops. you can use property sheets to create project deployments that can be applied to multiple projects since project settings that are defined in. vsprops files are inheritable, unlike project settings defined in project files (. vcproj files ). therefore, a project configuration defined in. vcproj file can inherit Project Settings from one or more property sheets (. vsprops files ).
-- User-Defined macros
we will always see a lot of predefined macros like $ (solution), $ (outdir ). we can define ours by project property sheet. there is a "User macros" there. they are defined in. vsprops files directly.
Note: there are actually two ways to define user-defined macros: one is described as above; the other is to define them directly as environment variables.

2. How to use a project property sheet
1) create one. Use property manager.
2) In every C ++ project setting's general area, there is a "inherited project property sheets", where we can specify those. vsprops files to inherit from.
3) to inherit the settings: For those setting which can have only one input like "output directory", you can choose "inherit from parent or project defaults" directly; for those settings which can have multiply inputs like "Additional include directory", the inheritance is done automatically.

In a word, for a solution, if preparing well A. vsprops to contain common settings, and let it be inherited by its projects, we can manage Project Settings easily!

Note this article into blog: http://www.itwis.com/html/c/ctool/20070904/1.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.