> DOTNET_CLI_TELEMETRY_OPTOUT
I didn't know about this. I wonder how that sits legally with local data protection rules (EU).
I doubt they way they approach it is legal, but I don't think any of the DPAs have time to look into it.
For what it's worth, the tool prints a clear warning the first time you invoke it. You shouldn't need to opt out regardless, but they do at least communicate their stalking.
If you want to avoid this (and still want to use .NET) you'll have to make sure that the environment variable DOTNET_CLI_TELEMETRY_OPTOUT is set in all contexts before touching anything.
[1] https://github.com/dotnet/sdk/issues/6145