Running dotnet core command dotnet run in a command line I found this
You can opt out of telemetry by setting a DOTNET_CLI_TELEMETRY_OPTOUT environment variable to 1 using your favorite shell.
How do I set this variable?
Thanks for your time.
NET Core agents use telemetry to collect usage data. Telemetry is collected when an instrumented application first loads the agent's sensors and then periodically (every few hours) afterwards. Your privacy is important to us. The telemetry feature doesn't collect application data.
In System variables, select path and edit. After semicolon, write "C:\Program Files\dotnet"
On Windows use
set DOTNET_CLI_TELEMETRY_OPTOUT=1
to avoid that telemetry data is sent by dotnet.exe in the current command line session.
Or use
setx DOTNET_CLI_TELEMETRY_OPTOUT 1
do disable this feature permanently.
To set environment variable only for current cmd session write set DOTNET_CLI_TELEMETRY_OPTOUT=1
or set DOTNET_CLI_TELEMETRY_OPTOUT=true
(according to .NET Core Tools Telemetry)
To set environment variable permanently use setx
instead of set
.
Edit: For setx
it has to be setx DOTNET_CLI_TELEMETRY_OPTOUT 1
, and changes will only take effect when a new command window is opened - they do not affect the current CMD.
Developer Command Prompt is started with this .bat
file: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat
so you can edit it and add permanent changes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With