Application of Vs2012 in Linux development (4): Definition of public properties

Source: Internet
Author: User

In the process of embedded development, some parameters are basically not changed, such as compiling the host's IP, user name, password and other parameters. We use the property manager provided by VS to save these parameters.

Open the property Manager:

You can see that VS will automatically load a property sheet called microsoft.cpp.$ (Platform) based on different platforms, and this property sheet file is stored in appdata\local\. User.prop. under the microsoft\msbuild\v4.0 directory:

Of course we can also create the property sheet files and import them into this project as needed.

We add our definitions to the Microsoft.Cpp.hi3516.user table:

Be sure to select Add to environment variable when adding:

This makes it possible to refer to it at compile time.

Application of Vs2012 in Linux development (4): Definition of public properties

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.