diff --git a/dotnet.inc.php b/dotnet.inc.php index 0db8237..9dc4df2 100644 --- a/dotnet.inc.php +++ b/dotnet.inc.php @@ -9,8 +9,8 @@ class DotnetSupport } } -task('dotnet_set_env_path', ['always' => true], function() { - dotnet_set_env_path(); +task('dotnet_set_env', ['always' => true], function() { + dotnet_set_env(); }); task('dotnet_install', function() { @@ -47,8 +47,10 @@ function dotnet_install(string $version) shell("\"$install_file_path\" --channel $channel"); } -function dotnet_set_env_path() +function dotnet_set_env() { + putenv("DOTNET_CLI_TELEMETRY_OPTOUT=1"); + $dotnet_path = dotnet_get_path(); if(is_win()) putenv("PATH=$dotnet_path;".getenv('PATH'));