Skip to content

Static graph-based restore crashes on systems with alternate console encodings #12373

@jeffkl

Description

@jeffkl

NuGet Product Used

dotnet.exe, MSBuild.exe

Product Version

Visual Studio 17.5

Worked before?

Yes, Visual Studio 17.4

Impact

It's more difficult to complete my work

Repro Steps & Context

In Windows Region settings, enable "Use Unicode UTF-8 for worldwide language support"

image

This seems to make Console.StandardInput have a 3-byte preamble, causing the logic that read the static graph restore arguments to not work correctly.

Reported by @vlada-shubina

Caused by NuGet/NuGet.Client#4772

This is fixed in 17.6

Workaround

Disable the Windows Region setting and reboot.

Verbose Logs

No response

Metadata

Metadata

Assignees

Labels

Area:RestoreStaticGraphIssues related to the Static Graph restoreFunctionality:RestorePriority:1High priority issues that must be resolved in the current sprint.RegressionFromPreviousRTMA regression from the last RTM. Example: worked in 6.2, doesn't work in 6.3Type:Bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions