From 85d6434afef43bc0ccc056622905c9ba6ede0a26 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Mon, 23 Sep 2024 19:02:14 +0300 Subject: [PATCH] Tweaking env --- dotnet.inc.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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'));