New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should dotnet --info surface a global.json in the mix? #8599
Comments
This may be more important than before since VS 15.3+ now resolves the msbuild SDKs used via hostfxr and respects global.json. |
This we briefly touched on in #6569:
I agree that something should be developed here, I lost some time to this once, myself. |
@vcsjones That's not what I'm suggesting. All I'm saying is that if there is a global.json that's setting the SDK that the output could tell u that. I'm not talking about listing SDK's ... just state which global.json file is controlling the version. I'm also not talking about |
Good idea! |
Too many times now on Slack a dev shows up with "I just upgraded my SDK, but I can't see the upgrade in the project." There's this little dance where someone has to tell them to go look for a global.json somewhere above the project ... sure enough ... six months ago they stuck one up there to "freeze things" while they worked on a project and totally forgot about it. The only other thing I can think of for surfacing this beyond |
global.json death toll upgrading to 2.0.0 over the last two days I've heard of: 8. (@ctolkien being the latest addition). |
Sure, I understand what you're asking. I brought it up because some people are confused by the output of
That's where I think we should be heading with this. I don't think |
We are looking into a mine re-haul of dotnet --info on https://github.com/dotnet/cli/issues/7926. I am closing this issue in favor of that one that has traction. cc @KathleenDollard to add the idea of indicating that the SDK version is coming from a global.json. |
Steps to reproduce
Expected behavior
dotnet --info
tells you that an intervening global.json (with its path) is holding back the SDK.Actual behavior
馃樀 Can't figure out why the SDK is stuck on an older version.
Source
Slack chat: This just happened to a dev today, and it happened to me once several months ago.
I understand if u lean "DNF" on this suggestion; however, consider that if it would be easy to surface that the SDK is fixed by a global.json in the output of
dotnet --info
, WHY NOT??? I speculate it would save many devs from some pain.The text was updated successfully, but these errors were encountered: