M
M
Melonwatr12020-06-01 15:06:46
PowerShell
Melonwatr1, 2020-06-01 15:06:46

How to opt out of telemetry in .NET?

How to opt out of telemetry in the .NET SDK, the site says to set the DOTNET_CLI_TELEMETRY_OPTOUT variable to 1 or true. What variable, where. Print in PowerShell?

Quoting https://docs.microsoft.com/en-us/dotnet/core/tools... :

How to opt out
The .NET Core SDK telemetry feature is enabled by default. To opt out of the telemetry feature, set the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to 1 or true.

A single telemetry entry is also sent by the .NET Core SDK installer when a successful installation happens. To opt out, set the DOTNET_CLI_TELEMETRY_OPTOUT environment variable before you install the .NET Core SDK.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MaxKozlov, 2020-06-01
@MaxKozlov

DOTNET_CLI_TELEMETRY_OPTOUT environment variable
printing is usually accepted on a printing press, but variations are possible.
you can, in Powershell, in particular, execute the command

[System.Environment]::SetEnvironmentVariable('DOTNET_CLI_TELEMETRY_OPTOUT', 1, 'Machine')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question