MSBuild imported script directory

Posted by Michael K. on Stack Overflow See other posts from Stack Overflow or by Michael K.
Published on 2010-03-03T17:59:43Z Indexed on 2010/05/15 22:50 UTC
Read the original article Hit count: 182

Filed under:
|

In Visual Studio 2010 we have MSBuild for C++ project. Also we can add additional custom properties files "*.props" to projects, which are just MSBuild scripts.

Is it possible in imported "some.props" file know its directory?

for example there is "project.vcxproj" file and "common.props" file. I would like to write something:

<IncludeDir>$( [and something for common.props file directory here] )\include</IncludeDir>

What should I write there?

© Stack Overflow or respective owner

Related posts about msbuild

Related posts about visual-studio-2010