I need the user directory path (absolute) in my cake script, to mount the nuget cache of the build agent to the docker container, that builds the application. How do I get them?
Directory("~")
doesn't work.
I need the user directory path (absolute) in my cake script, to mount the nuget cache of the build agent to the docker container, that builds the application. How do I get them?
Directory("~")
doesn't work.
Typically, on both Windows and *nix, the user home folder is stored in an environment variable. In which case, you should be able to do something like this:
Assuming the above contains what you want, you could then pass the result to
Directory()
.UPDATE:
Try the following: