Closed tannergooding closed 1 year ago
As far as I understand the current code on main should still be printing this (or is supposed to):
https://github.com/dotnet/sdk/blob/fac2452744d0a0ca945be4f7ab0b6fcfe3063c0c/src/Cli/dotnet/Program.cs#L157-L161 https://github.com/dotnet/sdk/blob/fac2452744d0a0ca945be4f7ab0b6fcfe3063c0c/src/Cli/dotnet/CommandLineInfo.cs#L19-L33
It seems related to using dotnet.exe
when inside a dotnet/runtime
checkout, I can reproduce it in that situation too. Weirdly .\dotnet.cmd --info
works correctly in that case (so this might already be fixed in a new nightly SDK).
It looks like https://github.com/dotnet/runtime/pull/80234 updated dotnet/runtime to require a 8.0 alpha SDK (specified in global.json) so that just needs to be installed. Verified that it fixes the issue for me, will close this.
We could update the tool to infer this information via the
OSPlatform
APIs as a fallback or at least allow them to be explicitly specified via the command line.As it is right now, we get the following: