You can directly modify the files in the C: \ Users \ Lenovo \ appdata \ Local \ Microsoft \ msbuild \ v4.0 Directory: Microsoft. CPP. win32.user or Microsoft. CPP. x64.user
for example, the original content is:
$ (executablepath)
$ (shortdepath)
$ (referencepath)
$ (librarypath)
$ (sourcepath)
$ (excludepath)
Now I need to add a directory:
C: \ boost \ include \ boost-1_43 \; to the default header include path, you can modify the file as follows:
<? 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> C: \ boost \ include \ boost-1_43 \; $ (shortdepath) </shortdepath>
<Referencepath >$ (referencepath) </referencepath>
<Librarypath >$ (librarypath) </librarypath>
<Sourcepath >$ (sourcepath) </sourcepath>
<Excludepath >$ (excludepath) </excludepath>
</Propertygroup>
</Project>
For the XP system, modify the default project in c: \ Program Files \ Microsoft Visual Studio 10.0 \ Vc \ vcwizards. The new project after modification will be valid, but it will not work for the previous project, if you want to apply to previous projects, join others' blog http://www.cnblogs.com/hwangbae/archive/2012/06/24/2560463.html