I'm trying to modify a predefined environment macros in Visual Studio 2015. Specifically this: VC_IncludePath
I can see it and its value, but I can not modify it. I don't see the option to do it.
I'm trying to modify a predefined environment macros in Visual Studio 2015. Specifically this: VC_IncludePath
I can see it and its value, but I can not modify it. I don't see the option to do it.
You can edit this file:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Common.props
The value of this macro is automatically generated from the versions you have set in the property pages. Select Project, Properties, Configuration Properties, General and check that the Target Platform Version and Platform Toolset are correct for your installation.
For other versions, search 'Microsoft.Cpp.Common.props' in windows explorer at C:. You may find several depending on versions installed. Then, right click the version you want and Open > choose VS (easier to see the lists) or any. However, no VS environment variables are there to edit.
The place to change that environment variable is in the project property page Configuration Properties -> VC++ Directories as described in the MSDN documentation.