Customize system environment variable Path for MSBuild Exec Task
问题 I'm trying to trying to invoke a batch script that acquired during the MSBuild process using the Exec Task. However, the location of script is not part of the path system environment variable. So I figure I can update the Path property within the target and then trigger the Exec Task: <Target Name="RestoreNPMPackages"> <Message Text="$([System.DateTime]::Now.ToString("yyyy-MM-dd hh.mm.ss.fff")) Entering Build.xml Target RestoreNPMPackages..." Importance="high" /> <PropertyGroup> <Path>$(Path)