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
- <? XML version = "1.0" encoding = "UTF-8"?>
- <Project defaulttargets = "build" toolsversion = "4.0" xmlns = "http://schemas.microsoft.com/developer/msbuild/2003">
- <Propertygroup>
- <Executablepath> $ (executablepath) </executablepath>
- <Shortdepath >$ (includepath) </shortdepath>
- <Referencepath >$ (referencepath) </referencepath>
- <Librarypath >$ (librarypath) </librarypath>
- <Sourcepath >$ (sourcepath) </sourcepath>
- <Excludepath >$ (excludepath) </excludepath>
- </Propertygroup>
- </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