Skip to content

PowerShell 7 distributed via dotnet tool broken by upgrade to .NET 8 #20685

@bradwilson

Description

@bradwilson

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:

59814fd4d0f0586c

Uninstalling the dotnet tool distributed version and using the WinGet distributed version was an effective workaround.

Expected behavior

PowerShell works.

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

Metadata

Metadata

Labels

In-PRIndicates that a PR is out for the issueIssue-BugIssue has been identified as a bug in the product

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions