On build agents, the HOME env var is not set and this causes the dotnet CLI to fail. Use the built-in fallback Agent.TempDirectory if DOTNET_CLI_HOME itself is not defined and if all else fails, let the Pulumi CLI fail too, so that the user can set an appropriate home path for the dotnet CLI.
Fixes #23.
On build agents, the
HOME
env var is not set and this causes the dotnet CLI to fail. Use the built-in fallbackAgent.TempDirectory
ifDOTNET_CLI_HOME
itself is not defined and if all else fails, let the Pulumi CLI fail too, so that the user can set an appropriate home path for the dotnet CLI.