-
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
FYI (Dev. Env. Broke): Today Windows Update (!) installed .NET SDK 5.0.1 and uninstalled .NET SDK 5.0.200-preview.20601.7 #5781
Comments
And even the repair doesn't help. It doesn't install .NET SDK 5.0.200-preview.20601.7. So, now I can't do anything anymore. |
Okay, got it running again.
|
@joeloff any ideas? Is this related to dotnet/sdk#14916 ? |
No, 14916 is related to when people install both x86/x64 runtimes, but then only install a single SDK. Depending on the runtime you installed last the PATH variable can end up pointing to the runtime that doesn't have a matching SDK. Currently, only 5.0.101 is offered in Microsoft Update. @JeepNL, do you have logs (look in your %temp% folder)? 5.0.1xx band should not update 5.0.2xx as they're intended for SxS use. Also, which VS version did you have installed that offered the 2xx preview for you? |
I'm busy setting up a repro machine |
.NET SDK 5.0.200-preview.20601.7 was installed by Visual Studio v16.9.0 Preview 2.0 (see my issue: #5734) I think it you can reproduce this
I got it running again by: (in this order) a) Deleted all .NET SDKs (Programs & Features) b) Deleted everything from: (maybe too much, I don't know, I wanted it all gone, it's my dev PC, I need it to work) c) Do a Windows Update which installs .NET 5.01) d) repair Visual Studio Preview (which installs .NET SDK 5.0.200-preview.20601.7) e) Additionally I needed to download and install ".NET Desktop Runtime 5.0.1" from https://dotnet.microsoft.com/download/dotnet/5.0 (https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-desktop-5.0.1-windows-x64-installer) The last step e) for EF Core 5.01 CLI to work. |
FYI it's almost 01:00 AM where I live, so I'll check in again tomorrow. |
I've got a good idea what's going on here, but hoping your logs will confirm: Can you open a powershell prompt (as admin), then run You should see something similar to this: 020/12/22 15:45:30.3972604 1548 8244 Agent Title = 2020-12 .NET 5.0.1 Update for x64 Client Very important, if you open an admin prompt and run |
@JeepNL, it would be good to know what your system PATH looked like (when in the broken state). I realize you've unwound the stack and cleaned this up, but if you have any other machines with the repo or get into this state again please let us know what you find. |
|
I do not have another development PC, and you're probably right about the PATH: where I said Windows Update did an 'uninstall' of |
I noticed that that the x86 copy of dotnet is first on the path. That is likely what tripped everything up. Thanks for all the data and prompt replies. I'll go over the data today. If you were to open an arbitrary prompt, I'd expect |
Yes, I don't know why the x86 path is first in the list, I didn't manually edit the order. My PC config worked before Windows Update installed .NET 5.01. I did the update when I worked on a project in Visual Studio, rebooted my PC and then it stopped working when I opened Visual Studio again. The Windows Update was the only thing that happened in between. When I open een 'normal' command prompt (ie: 'cmd' in File Explorer) I get the same result (see screenshot: I do not know if this issue needs to stay open. If you've got everything you need, or if this issue has been resolved you can close it if you want. Thank you for your replies and I wish you a merry Christmas and a happy New Year! |
Thanks @JeepNL, same to you and thanks for all the information. For now we can keep the issue open. We've seen something similar happen when users sometimes mix x86/x64 where the x86 path ends up first and the host resolves to the 32-bit copy. The reboot might be crux of the issue. Setting the environment variable is tied to the same component that installs dotnet.exe. If the restart manager decides to defer the file being installed, it's possible the PATH update happens after a reboot too. We always append to PATH, and we always install x86 after x64 which has mad this issue difficult to repro. |
@JeepNL Can you please send me the log files from the Windows\Temp folder, specifically the dotnet_host ones (both x86 and x64). Then from your %temp% folder, look for all |
@joeloff I couldn't find any If this doesn't help you I could try to reproduce the issue myself on my PC. |
Ping @joeloff |
I'm using the latest previews, e.g. .NET SDK / Visual Studio.
Dev. environment broke after Windows Update installed .NET SDK 5.01 and uninstalled .NET SDK 5.0.200-preview.20601.7
And because .NET SDK 5.0.200-preview.20601.7 is not available for download (see my previous issue: #5734) I had to do a repair of Visual Studio Preview.
The text was updated successfully, but these errors were encountered: