Today Microsoft announced that .NET Core is available for installation on various platforms. Here's the website for .NET Core

And this is the download section for Ubuntu 14.04 LTS (Trusty) and 16.04 LTS (Xenial)

After installing .NET Core using these commands for Ubuntu 16.04 (Xenial)

sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
sudo apt-get update
sudo apt-get install dotnet-dev-1.0.0-preview2-003121

I got this message:

This software may collect information about you and your use of the software, and send that to Microsoft. Please visit http://aka.ms/dotnet-cli-eula for more information.

Is there a way to disable data collection? There can be many reasons for disabling data collection by .NET, but privacy concerns are very important.

  • 1
    Use tcpdump to see where the data is collected. Then block outgoing connections to that address.
    – Jos
    Jun 28 '16 at 8:55

Short answer:

Issuing this command should disable telemetry:


More details:

This is the output from running the dotnet new as the first command.

Welcome to .NET Core!
Learn more about .NET Core @ https://aka.ms/dotnet-docs. Use dotnet --help to see available commands or go to https://aka.ms/dotnet-cli-docs.
The .NET Core tools collect usage data in order to improve your experience. The data is anonymous and does not include commandline arguments. The data is collected by Microsoft and shared with the community.
You can opt out of telemetry by setting a DOTNET_CLI_TELEMETRY_OPTOUT environment variable to 1 using your favorite shell.
You can read more about .NET Core tools telemetry @ https://aka.ms/dotnet-cli-telemetry.
A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.
Decompressing 100% .... ms
Expanding 100% .... ms

More information can be obtained from the sources and the pull request for telemetry feature


Specifies whether data about the .NET Core tools usage is collected and sent to Microsoft. true to opt-out of the telemetry feature (values true, 1 or yes accepted); otherwise, false (values false, 0 or no accepted). If not set, it defaults to false, that is, the telemetry feature is on.

It is good to know where .NET Core creates its cache.

  • I have this on a script at /etc/profile.d/ to work for all users and shells.
    – Marc.2377
    Jun 22 '19 at 2:27

Another answer is of course: Find/use/create/publish a patch(ed version of .Net), or fork of the sources, which removes telemetry entirely, or makes it OptIn by default.

At of today, there are 709 forks. I find it likely, that somebody has already done the legwork to cut out unwanted stuff, but I cannot point to a specific fork (yet). I, you, or somebody else here, will update this answer, if/once there is a BetterPrivacyVersionOfDotNet.

Combined with a Blog post of how much smaller, leaner, faster, etc the "privacy-enhanced" compiles are, I see the possibility of internet fame for an enterprising Dev/Tech_Journalist. "The .Net Liberator" ;)

  • To Downvoter: Can you explain why, please? Feb 25 '18 at 3:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.