Skip to content

vcpkg.exe cannot determine the version of the downloaded nuget.exe. #38940

@kazssym

Description

@kazssym

Describe the bug
vcpkg.exe cannot determine the version of the downloaded nuget.exe and stops its execution.

Environment

  • OS: Windows 11 Pro 22H2
  • Compiler: Visual Studio Community 2022 17.10.0

To Reproduce
Steps to reproduce the behavior:

  1. ./vcpkg upgrade --no-dry-run
  2. See error
…(snip)
A suitable version of nuget was not found (required v6.10.0) Downloading portable nuget 6.10.0...
Downloading nuget...
https://dist.nuget.org/win-x86-commandline/v6.10.0/nuget.exe->F:\vcpkg\downloads\71d7307b-nuget.exe
Downloading https://dist.nuget.org/win-x86-commandline/v6.10.0/nuget.exe
error: nuget (F:\vcpkg\downloads\tools\nuget-6.10.0-windows\nuget.exe) produced unexpected output when attempting to determine the version:
NuGet バージョン: 6.10.0.107
使用方法: NuGet <command> [args] [options]
…(snip)

Expected behavior
vcpkg.exe would continue the upgrade process.

Failure logs
vcpkg.exe did not provide any log locations.

Additional context
My environment uses the Japanese locale. nuget.exe 6.2.1 produced NuGet Version: 6.2.1.2 but 6.10.0 produces NuGet バージョン: 6.10.0.107. The localized output seems to be the cause.

Metadata

Metadata

Assignees

Labels

category:vcpkg-bugThe issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)requires:tool-releaseAn issue that has been fixed in the microsoft/vcpkg-tool repo and is waiting for a release thereof

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions