Open
Description
We're lucky to have so many organizations building .NET. However, it can be difficult to tell which build you are using. For example, it's possible on Linux to install .NET from Microsoft or from the distro and both are valid choices.
I'm thinking about something like this (see last line).
$ dotnet --info
.NET SDK:
Version: 8.0.100
Commit: 57efcf1350
Workload version: 8.0.100-manifests.2d90560f
Runtime Environment:
OS Name: ubuntu
OS Version: 23.10
OS Platform: Linux
RID: ubuntu.23.10-x64
Base Path: /usr/lib/dotnet/sdk/8.0.100/
.NET workloads installed:
Workload version: 8.0.100-manifests.2d90560f
There are no installed workloads to display.
Host:
Version: 8.0.0
Architecture: x64
Commit: 5535e31a71
Built by: Microsoft
By default, that value would be blank. The downside of this idea is that it would be easy for someone with malicious intent to say "Microsoft" for this value to trick people (and get them to run their code). I'd suggest that it is already possible to do same (in DLL resources) and by the time dotnet --info
runs then the gig is already up.