Jon Gallant

Solution - The user's home directory could not be determined. Set the 'DOTNET_CLI_HOME' environment variable to specify the directory to use.

1 min read

In Azure DevOps, got this:

The user's home directory could not be determined. Set the 'DOTNET_CLI_HOME' environment variable to specify the directory to use.

As a workaround, add the DOTNET_CLI_HOME variable to the Build definition.

000005

And if you are using Tox, make sure you add DOTNET_CLI_HOME to your tox.ini file’s passenv setting, so tox receives the variable:

passenv = APPDATA ProgramFiles USERPROFILE PROGRAMDATA DOTENV_FILE LOCALAPPDATA DOTNET_CLI_HOME

Jon

Share:
Share on X