tasks/40-Dotnet.ps1

@{
    Id          = '.NET'
    DisplayName = '.NET CLI home'
    Description = 'Global tools, telemetry, and NuGet config under ~/.dotnet'
    Action      = {
        param(
            [Parameter(Mandatory)]
            [System.Collections.IDictionary] $Paths
        )

        Write-Header -Name '.NET CLI'

        $params = @{
            Name          = 'DOTNET_CLI_HOME'
            TargetRoot    = $Paths.DotnetHome
            DefaultSource = '%USERPROFILE%\.dotnet'
        }
        Set-CacheLocation @params
    }
}