Prerequisites
Steps to reproduce
With today's release of .NET 8, I updated Visual Studio 2022 to install .NET 8 and removed the .NET 7 runtime. After the suggested reboot, PowerShell 7 was broken, and reinstalling it didn't help:

Uninstalling the dotnet tool distributed version and using the WinGet distributed version was an effective workaround.
Expected behavior
Actual behavior
PowerShell crashes on launch.
Error details
No response
Environment data
Name Value
---- -----
PSVersion 7.3.9
PSEdition Core
GitCommitId 7.3.9
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response
Prerequisites
Steps to reproduce
With today's release of .NET 8, I updated Visual Studio 2022 to install .NET 8 and removed the .NET 7 runtime. After the suggested reboot, PowerShell 7 was broken, and reinstalling it didn't help:
Uninstalling the
dotnet tooldistributed version and using theWinGetdistributed version was an effective workaround.Expected behavior
PowerShell works.Actual behavior
PowerShell crashes on launch.Error details
No response
Environment data
Visuals
No response