I'm not sure the title of your post matches what you're asking so I'm a little confused as to what you're trying to accomplish. In general the project file is loaded and then additional .props
files can override it. However it depends on when the .props
file is loaded. For example the common .props
files are loaded after the property sheet values. Open a project file in an editor and you can see where all the property sheet values are set first and then the common C++ files are loaded next. The inheritance is defined here.
If you want to "append" to an existing property then you can do that by using the variable as part of your assignment. For example if there is a property called $(IncludePath)
then you can append to it by setting the value to $(IncludePath);C:\somenewpath
. The existing files do the same thing so if you change the include path in the property sheet then the common files will append to that.
If you need to share stuff across projects then consider using the directory.build.props. This is the recommended approach. If you need this across solutions then put it into the environment variables for the system/user instead.