MSBUILD: how to find out current folder of imported file

S

Sajjad Akhter

Hi,

Issue at hand is that i want to have common build scripts, but people may be
multiple version (source trees) on single machine. How can i traverse parent
tree.

so what i thought is that i would put ..\env.Build file

when it reaches to root (where it knows location of common scripts).
then it will init variable to that folder.

problem is that how to find folder of imported build file.

or if i have a path string is there some string manuplution in msbuild that
would allow me to extract path info.
etc

Thanks,
Sajjad
 
L

Luke Zhang [MSFT]

Hello Sajjad,

MSBuild provides a set of reserved properties that store information about
the project fille and the MSBuild binaries. For example,
$(MSBuildProjectDirectory).

For deatils on this, you may refer to:

http://msdn2.microsoft.com/en-us/ms164309.aspx

Regards,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top