VS 2010: How to change VC++ directories Inherited values (read only)
-
Wednesday, April 14, 2010 9:17 AM
I have installed VS2010 on a machine with PocketPC sdk.
When I create a new project it automatically uses PocketPC includes instead of original VC2010 directories.
There is problem with the line 1 in project properties / VC++ directories / include directories / Inherited values which are:
C:\PROGRAM FILES\POCKETPC_SDK\include
$(VCInstallDir)include
$(VCInstallDir)atlmfc\include
$(WindowsSdkDir)include
$(FrameworkSDKDir)\includeand these values cannot be changed.
They are also not in registry.
- Moved by Aaronru - MSFTMicrosoft Employee, Moderator Thursday, April 15, 2010 8:33 PM not setup related, is about creating pocketpc app (From:Visual Studio 2010 Install and Setup)
Answers
-
Friday, April 16, 2010 6:01 AM
VS2010 introduces the user settings file (Microsoft.cpp.<Platform>.users.props) to control global settings including Global search path. These files are located at $(USERPROFILE)\appdata\local\microsoft\msbuild\v4.0 directory.
The issue you are seeing is a bug in the UI. To make it possible to change the ordering of these read-only directories, here is the workaround that you can apply:
1. open up the property manager,
2. right click on the .user.props file to bring up the property page
3. open up VC++ Directories -> Include Directories, add new paths after $(IncludePath)
4. Click on the "Edit" dropdown on VC++ Directories -> Include Directories property, the user directories as well as the inherited values will show up in the upper pane
5. you can move the directory orders as you wish and save.Please let me know if this is what you wanted to achieve.
Li Shao, MSFT
Li Shao- Marked As Answer by Nancy ShaoModerator Tuesday, April 20, 2010 9:50 AM
All Replies
-
Friday, April 16, 2010 6:01 AM
VS2010 introduces the user settings file (Microsoft.cpp.<Platform>.users.props) to control global settings including Global search path. These files are located at $(USERPROFILE)\appdata\local\microsoft\msbuild\v4.0 directory.
The issue you are seeing is a bug in the UI. To make it possible to change the ordering of these read-only directories, here is the workaround that you can apply:
1. open up the property manager,
2. right click on the .user.props file to bring up the property page
3. open up VC++ Directories -> Include Directories, add new paths after $(IncludePath)
4. Click on the "Edit" dropdown on VC++ Directories -> Include Directories property, the user directories as well as the inherited values will show up in the upper pane
5. you can move the directory orders as you wish and save.Please let me know if this is what you wanted to achieve.
Li Shao, MSFT
Li Shao- Marked As Answer by Nancy ShaoModerator Tuesday, April 20, 2010 9:50 AM
-
Tuesday, May 25, 2010 10:01 PM
Li,
Your workaround must be applied to every project. My department has more than 30 projects. It's really a pain to go through all of them.
Thanks,
-Richard-
-
Tuesday, May 25, 2010 10:07 PM
-
Thursday, October 07, 2010 5:25 AM
VS2010 introduces the user settings file (Microsoft.cpp.<Platform>.users.props) to control global settings including Global search path. These files are located at $(USERPROFILE)\appdata\local\microsoft\msbuild\v4.0 directory.
The issue you are seeing is a bug in the UI. To make it possible to change the ordering of these read-only directories, here is the workaround that you can apply:
1. open up the property manager,
2. right click on the .user.props file to bring up the property page
3. open up VC++ Directories -> Include Directories, add new paths after $(IncludePath)
4. Click on the "Edit" dropdown on VC++ Directories -> Include Directories property, the user directories as well as the inherited values will show up in the upper pane
5. you can move the directory orders as you wish and save.Please let me know if this is what you wanted to achieve.
Li Shao, MSFT
Li ShaoThanks Li Shao : i use VS2010 and I've actually done it! But, there is a little difference with u.
** See below the references ^^:
http://msdn.microsoft.com/en-us/library/ee855621.aspx