question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet workload install always displays "The machine has a pending reboot. Installation will continue, but you may need to restart."

See original GitHub issue

Describe the bug

On both Windows 10 and 11 dotnet workload install always shows The machine has a pending reboot. Installation will continue, but you may need to restart.

This message does not go away even after restart and windows update is not showing an pending installs.

To Reproduce

Run the following command dotnet workload install wasm-tools

Exceptions (if any)

Further technical details

  • Include the output of dotnet --info .NET SDK: Version: 7.0.100 Commit: e12b7af219

Runtime Environment: OS Name: Windows OS Version: 10.0.22621 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\7.0.100\

Host: Version: 7.0.0 Architecture: x64 Commit: d099f075e4

.NET SDKs installed: 6.0.306 [C:\Program Files\dotnet\sdk] 7.0.100 [C:\Program Files\dotnet\sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 5.0.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 5.0.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 5.0.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found: x86 [C:\Program Files (x86)\dotnet] registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables: Not set

global.json file: Not found

Learn more: https://aka.ms/dotnet/info

Download .NET: https://aka.ms/dotnet/download

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
nagilsoncommented, Nov 16, 2022

The middle key was missing hklm, reg query "hklm\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending". Thanks for the fast response and following up!

1reaction
nagilsoncommented, Jan 11, 2023

Noooo, you definitely shouldn’t, that is a pending file rename managed by VS. Doing that may destabilize VS.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A reboot from a previous installation is pending. Please ...
I get the below error: A reboot from a previous installation is pending. Please restart the system and then rerun Setup. Not sure...
Read more >
The computer needs to be restarted before Setup can ...
Exchange Setup can't continue because it detected a pending reboot to complete the installation of other programs or Windows updates.
Read more >
.NET MAUI workload restore error Failed to run MSBuild ...
After it completed I exited out of visual studio, restarted, reloaded the solution, but it still failed. I gave it time to do...
Read more >
Persistent "Requires a restart to finish installing" after most
and both are showing as Requires a restart to finish installing, despite my having restarted the machine twice since the installation.
Read more >
Cannot install Exchange CU due to pending reboot from a ...
There is a pending reboot from a previous installation of a Windows Server role or feature. Please restart the computer and then run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found