1

I have a Custom Build Tool and I would like to call git from its Command Line.

enter image description here

I mean git included with Visual Studio installation, for example on my computer its path is the following:

c:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\cmd

Is there any Macros (the ones with name $()) that gives me the right path to git? I would prefer to use a macro instead of hard coding the path.

Alessandro Jacopson
  • 18,047
  • 15
  • 98
  • 153

1 Answers1

2

Only $(DevEnvDir).

But you can follow with a relative path to build what you want. Something likeL

"$(DevEnvDir)CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\cmd\git.exe"

(The quotes are needed because this is passed to cmd.exe and there is a space in the path.)

Richard
  • 106,783
  • 21
  • 203
  • 265
  • Thank you! Unfortunately now I get this error https://stackoverflow.com/questions/57592530/latest-update-brings-github-error-on-pull-push-or-sync but it is a different issue. – Alessandro Jacopson Nov 06 '19 at 11:16