I’m using a custom program to perpare a configuration file for my project. The program uses git command to get current branch name. However it can’t find git command because PATH env variable is missing.
In the targets files, the env variable seems to be set by target “SetBuildDefaultEnvironmentVariables” from “$(ExecutablePath)”. Is it possible the problem is caused by an empty ExecutablePath? If so, could you fix this?
PS: sometimes the PATH is back even without /UseEnv but it will disappear after closing all VS sessions.
It’s hard to suggest something specific here because the variable logic is handled by the Visual Studio itself rather than VisualGDB. You can try reproducing the problem on a regular non-VisualGDB project using the Exec task and then contact Microsoft for help.
If the VisualGDB projects behave differently from the regular MSBuild projects, please let us know and we will help you replicate the regular VC++ behavior.