Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

who can help me ? #39003

Open
nop4LOL opened this issue May 29, 2024 · 4 comments
Open

who can help me ? #39003

nop4LOL opened this issue May 29, 2024 · 4 comments
Assignees
Labels
category:question This issue is a question

Comments

@nop4LOL
Copy link

nop4LOL commented May 29, 2024

When I execute “vcpkg integrate project” the command, it always reports an error and cannot continue.

  • OS: Windows 10

Failure logs(error: nuget (F:\vcpkg\downloads\tools\nuget-6.10.0-windows\nuget.exe) produced unexpected output when attempting to determine the version:)

F:\vcpkg>vcpkg integrate project
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 [参数] [选项]
键入“NuGet 帮助 ”,以获取有关特定命令的帮助。

可用命令:

add 将给定的包添加到分层源。不支持 http 源。有关详细信息,请转到 https://docs.nuget.org/consume/command-line-reference#add-command。

client-certs 提供管理 NuGet.config 文件中的客户端证书列表的功能

config 获取或设置 NuGet 配置值。

delete 从服务器删除一个包。

help (?) 显示有关其他命令的常规帮助信息和帮助信息。

init 将 中的所有包添加到分层 。不支持 http 源。有关详细信息,请转到 https://docs.nuget.org/consume/command-line-reference#init-command。

install 使用指定的源安装包。如果未指定任何源,则使用 NuGet 配置文件中定义的所有源。如果配置文件未指定任何源,则使用默认的 NuGet 源。

list 显示来自给定源的包列表。如果未指定源,则使用 %AppData%\NuGet\NuGet.config 中定义的所有源。如果 NuGet.config 没有指定任何源,则使用默认的 NuGet 源。

locals 清除或列出本地 NuGet 资源,例如 http 请求缓存、temp 缓存或计算机范 围内的全局包文件夹。

pack 根据指定的 nuspec 或项目文件创建 NuGet 包。

push 将包推送到服务器并发布。
通过加载 %AppData%\NuGet\NuGet.config,然后加载从驱动器的根目录开始到当前目录为止的任 何 nuget.config 或 .nuget\nuget.config 来获取 NuGet 的默认配置。

restore 还原 NuGet 包。

search 使用提供的查询字符串搜索给定源。如果未指定任何源,则使用 %AppData%\NuGet\NuGet.config 中定义的所有源。

setApiKey 保存给定服务器 URL 的 API 密钥。如果未提供 URL,则将为 NuGet 库保存 API 密钥。

sign 使用指定的证书对 NuGet 包进行签名。

sources 提供管理 NuGet.config 文件中源列表的功能。

spec 为新包生成 nuspec。如果此命令与项目文件(.csproj、.vbproj、.fsproj) 在同一文件夹中运行,它将创建一个标记化的 nuspec 文件。

trusted-signers 提供管理受信任签名者列表的功能。

update 将包更新到最新可用版本。此命令还会更新 NuGet.exe 本身。

verify 验证已签名的 NuGet 包。

若要了解更多信息,请访问 https://docs.nuget.org/docs/reference/command-line-reference

who can help me ?

@Cheney-W Cheney-W added the category:question This issue is a question label May 29, 2024
@AndreaLanfranchi
Copy link

You should run the command from within the root directory of your C++ project.

Say your project is in C:\MyProject

  • Enter the C:\MyProject directory
  • Run F:\vcpkg\vcpkg.exe integrate project

@JerryLich
Copy link

You met the same problem in #38940, nuget 6.10.0 output Chinese in the command line. Only need to revert scripts/vcpkgTools.xml in #38872. nuget 6.2.1 works.

Copy link

github-actions bot commented Jul 2, 2024

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

@github-actions github-actions bot added the Stale label Jul 2, 2024
@sfhacker
Copy link

sfhacker commented Jul 2, 2024

@github-actions github-actions bot removed the Stale label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

5 participants