title: Include path relative to props file in visual studio
body: <p>I'm trying to create property file with include path to use in all my c++ project.</p>
  
  <p>Here is repository structure.</p>
  
  <pre><code>/
      /Libs
          /Libs2
              A.h
           B.h
      /Sln1
          Sln1.sln
          Proj1.vcxproj
      Sln2.sln
      Proj2.vcxproj
      Props.props
  </code></pre>
  
  <p>I want use property file (Props.props) to add the following include path to both projects ( C:\\Libs;C:\\Libs\Libs2).</p>
  
  <p>Currently I have macro in my property file:</p>
  
  <pre><code>Name          Value
  ProjRoot      C:\&lt;path to rep root&gt;
  </code></pre>
  
  <p>And I use it in include string: $(ProjRoot)\Libs;$(ProjRoot)\Libs\Libs2</p>
  
  <p>The problem with this solution is hardcoded absolute path in macro value. If my repository will be cloned on another drive I will have to change it manually.</p>
  
  <p>Can I use path relative to property file in macro value?</p>
  
  <p>I.e.:</p>
  
  <pre><code>Name          Value
  ProjRoot      ./
  </code></pre>
  
  <p>Where ./ will resolve to path of Props.props file in all projects which will use this property file.</p>
  
  <p>I cannot use $(SolutionDir) and $(ProjectDir) because there are may solutions and projects in different nesting level so path relative to them would not work.</p>
  
  <p>Thank you.</p>