How to Disable .Net Core SDK to Collect Usage Data

Mert Ilis
1 min readNov 10, 2017

--

In this post I will briefly show how to disable .Net Core SDK to collect usage data.

Today, I’ve updated the Microsoft .Net Core SDK and realized that by default it collects usage data in the name of telemetry feature.

The SDK is collecting following data as stated in here:

  • The command being used (for example, build, restore).
  • The ExitCode of the command.
  • The test runner being used, for test projects.
  • The timestamp of invocation.
  • Whether runtime IDs are present in the runtimes node.
  • The CLI version being used.
  • Operating system version.
  • Three octet IP address — note: this is not collected by the CLI itself but on the server.

.NET Team states that they need to understand how the tools are used to improve them. Well, normally I think this should be an opt-in thing therefore I’ve decided to opt-out from it.

To opt-out from telemetry feature you need to set the DOTNET_CLI_TELEMETRY_OPTOUT environment variable value to "1" or "true".

To do that open a Visual Studio command prompt and run the following command:

setx DOTNET_CLI_TELEMETRY_OPTOUT 1

Hope it helps!

Originally published at https://www.weboideas.com on November 10, 2017.

--

--

Mert Ilis
Mert Ilis

Written by Mert Ilis

I’m a software development enthusiast who likes trying different web technologies and adding value to his team.

Responses (1)