Say I am currently under the directory C:Eccentric-Stuff folder, then if I echo %CD%
, the output is that folder, that is right portion. However at underneath the folder when I am building the solution e.g. by issuing dotnet build C:userstemp1rocketshooting.sln
command, I find if I print “CD” environment variable from a “Message” task within a .csproj file under the solution, the output is c:userstemp1.
Since dotnet build interally using MSBuild, I wonder, in this case, if it is true that MSBuild updates the “CD” built-in variable to the solution file’s parent folder. I googled over and trying to find some official document from MSBuild mentioning, but to no vail. Does someone has any related information regarding this to provide ?