Default include path setting method for vs2010 Project Properties

Source: Internet
Author: User
Default include path setting method of vs2010 project attribute classification: C ++ tips 1358 people read comments (0) Add to favorites report C ++

There are two ways to set the default include path for vs2010

Method 1:

Click "View-> Property Manager" and select Microsoft. cpp. win32.user from the opened property manager.

As shown in:

In this case, you can set the default directory.

 

Method 2:

Open the Microsoft. cpp. win32.user. Props file in the C: \ Users \ Administrator \ appdata \ Local \ Microsoft \ msbuild \ v4.0 directory. The content is generally as follows:

[HTML]View plaincopy
  1. <? XML version = "1.0" encoding = "UTF-8"?>
  2. <Project defaulttargets = "build" toolsversion = "4.0" xmlns = "http://schemas.microsoft.com/developer/msbuild/2003">
  3. <Propertygroup>
  4. <Executablepath> $ (executablepath) </executablepath>
  5. <Shortdepath >$ (includepath) </shortdepath>
  6. <Referencepath >$ (referencepath) </referencepath>
  7. <Librarypath >$ (librarypath) </librarypath>
  8. <Sourcepath >$ (sourcepath) </sourcepath>
  9. <Excludepath >$ (excludepath) </excludepath>
  10. </Propertygroup>
  11. </Project>


Add the include directory in <includepath> of <propertygroup>, add the library directory in <librarypath>, and save and restart.

Default include path setting method for vs2010 Project 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.