Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Find What a Project Inherit's It's Additional Include Directories From

I have a project that is directly under the solution, it isn't nested in another project. Yet it has tons of values in it's "Additional Include Directories">"Inherited values":

enter image description here

I want to modify these, but where should I look for where these are defined?

like image 846
Jonathan Mee Avatar asked Jan 29 '16 21:01

Jonathan Mee


People also ask

Where is additional include directories?

Adding The Include Directory Go to the Visual Studio Project Property Pages dialog (From the Project menu, select Properties, or right-click on the project in the Solution Explorer). Select Configuration Properties, C/C++, General, and then add $(PIXELINK_SDK_ROOT)\include to the Additional Include Directories field.

How do I add inherited values in Visual Studio?

In the Properties Page > Config Properties > C/C++ > Preprocessor. Click Edit from the Preprocessor Definitions drop down menu. The bottom half of the dialog shows "Inherited values", these are read only.

What is %( AdditionalIncludeDirectories?

For a file, an item macro applies only to that file—for example, you can use %(AdditionalIncludeDirectories) to specify include directories that apply only to a particular file. This kind of item macro corresponds to an ItemGroup metadata in MSBuild.


1 Answers

This information is coming from the properties. You can see those on a per project basis in the "Property Manager" (I've attached a picture of my "View">"Other Windows">"Property Manager" but Assimilater has pointed out that the location may not be consistent across Visual Studio editions.)

In your Property Manager window you'll need to find your projects properties. Find your project and open the folder for the configuration you wish to modify. Right click on: "Local settings (specific for all projects in the directory)" and select "Properties".

From there you can edit "Common Properties">"C/C++">"General"'s "Additional Include Directories". Anything added here will show up in the "Inherited values" of your projects "Additional Include Directories" dialog.

I've validated that this information is consistent on Visual Studio 2008, 2010, 2012, 2013, and 2015.

You can read a more in depth piece on how to use properties here: http://blogs.msdn.com/b/vsproject/archive/2009/06/23/inherited-properties-and-property-sheets.aspx

enter image description here

like image 188
Jonathan Mee Avatar answered Oct 17 '22 07:10

Jonathan Mee