在 Rider 中为 nuget 启用 CodeArtifact 凭证提供程序

问题描述 投票:0回答:1

我已经配置了我的凭据提供程序,它可以与 nuget 和 dotnet cli 配合使用。 (使用说明https://docs.aws.amazon.com/codeartifact/latest/ug/nuget-cli.html#nuget-configure-cli

我已在 Rider 中启用 nuget 凭证提供程序。 (在设置 -> 构建/执行/部署下)

我正在使用

aws sso login
并且我的个人资料设置正确(我认为?也许 Rider 不同?)

当我尝试执行 nuget 恢复时,系统会提示我输入 CodeArtifact 源的用户名/密码。如何让凭证提供者正常工作?

在 MacOS 上使用 Rider 2023.2.1。

nuget rider aws-codeartifact
1个回答
0
投票

尝试以下...

  1. 在你的 zsh 中。将 NUGET_PLUGIN_PATHS 设置为 $HOME/.nuget/plugins/netcore/AWS.CodeArtifact.NuGetCredentialProvider/AWS.CodeArtifact.NuGetCredentialProvider.dll (或相关路径)
  2. 在 Rider 设置 --> NuGet --> 凭据提供程序中。将“使用凭据提供程序”设置为“NuGet/.NET CLI 插件”
  3. 在 Rider 设置 --> NuGet --> 恢复中。将“PackageReferenece Restore Engine”设置为“Console”

希望这有帮助。

© www.soinside.com 2019 - 2024. All rights reserved.