-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dot net core 3.1 sdk installer (windows 10) not working #3820
Comments
I think weirdness like this is expected to happen if you have both x86 and x64 SDKs installed:
Maybe this could be improved... seems like it could be complicated to make sure changes don't create bad expectations (expecting that the x64 dotnet can run the x86 SDK, ...) or cover every scenario. I don't have particularly deep knowledge of this component. This repo is the right place--if there are improvements, I believe they'd be in the dotnet host logic. |
@vitek-karas, can you take a look? |
I personally think that the behavior is correct in the sense that depending on which I can imagine doing things like:
|
when i changed my environment variables order that fixed it. Issue was i couldnt target core 3.1 only saw 3.0 because my environment variable had x86 before x64, moved it around and now i can target 3.1 |
Can you reopen this and address the issue? There are over 20 SO threads on this. It's a big problem. I made a clean answer at https://stackoverflow.com/questions/67049414/the-latest-installed-net-sdk-not-found/67049415 The .NET SDT installed needs to detect which path variable is first and issue a warning when appropriate. |
@Rick-Anderson can you please describe in more detail what you want to get fixed here? You mean that the x64 version should be aware of x86 and somehow hint the user how to get to the x86 (and vice versa)? |
The installer should be aware of the path variable so if you're installing a different bit version, you can be warned that this installation won't be used unless you manually edit/fix the path . It's not x64 only, it's both. If the path variable is already set for another bitness, return a link to a help doc. Some of the SO answers have the wrong answer to the problem There are many SO questions on this.
How often do folks intentionally install 2 different bitness to control which is being used? That's an advanced scenario and shouldn't drive the default behavior.
Can you reopen this issue, or do you mind if I reopen it? The following seem like great ideas.
|
Thanks a lot @Rick-Anderson. I created separate issues for the various parts of the product which should improve to provide optimal UX:
This is also very much related to all the work described in #50798 |
Describe the bug
dot net core 3.1 sdk installer (windows 10) not working
To Reproduce
1 .Downloaded and run dotnet-sdk-3.1.100-preview1-014459-win-x86.exe. No errors and runs to finish
Expected behavior
dotnet sdk 3.1 should be listed in dotnet --list-sdks
dotnet sdk 3.1 should be listed in C:\Program Files\dotnet\sdk
Additional context
Re running the installer offers a repair option, and runs without error, but does not install 3.1
The text was updated successfully, but these errors were encountered: