Visual Studio 2022 17.1升级导致经过身份验证的nuget恢复失败
Visual Studio 2022 17.1 upgrade causes authenticated nuget restore failure
在 Windows 10(以前的 17.0.6)
上升级到 VS2022 17.1.1 后,我们的 .NET 框架构建开始失败
C:\Program Files\dotnet\sdk.0.201\NuGet.targets(130,5): error : Password decryption is not supported on .NET Core for this platform. The following feed uses an encrypted password: '<our repository>'. You can use a clear text password as a workaround.
错误与 nuget 密码有关,但我们可以 运行 nuget restore
命令正常。
尽管我们所有的包都已经恢复,但它无法针对我们受密码保护的自托管 nuget 存储库。
解决方法是删除并re-add 带有明文密码的 nuget 存储库
dotnet nuget remove source <repository-name>
dotnet nuget add source "https://<repository-url>/nuget" --name "<repository-name>" --password iloveponies --store-password-in-clear-text --username mylittlepony
我遇到了同样的错误,但堆栈跟踪中最内部的异常是:Windows Data Protection API (DPAPI) 在这个平台上不受支持。
并且由于更新到新版本,对我来说它看起来像是已知问题:https://github.com/dotnet/sdk/issues/23498#issuecomment-1046937978
在 Windows 10(以前的 17.0.6)
上升级到 VS2022 17.1.1 后,我们的 .NET 框架构建开始失败C:\Program Files\dotnet\sdk.0.201\NuGet.targets(130,5): error : Password decryption is not supported on .NET Core for this platform. The following feed uses an encrypted password: '<our repository>'. You can use a clear text password as a workaround.
错误与 nuget 密码有关,但我们可以 运行 nuget restore
命令正常。
尽管我们所有的包都已经恢复,但它无法针对我们受密码保护的自托管 nuget 存储库。
解决方法是删除并re-add 带有明文密码的 nuget 存储库
dotnet nuget remove source <repository-name>
dotnet nuget add source "https://<repository-url>/nuget" --name "<repository-name>" --password iloveponies --store-password-in-clear-text --username mylittlepony
我遇到了同样的错误,但堆栈跟踪中最内部的异常是:Windows Data Protection API (DPAPI) 在这个平台上不受支持。
并且由于更新到新版本,对我来说它看起来像是已知问题:https://github.com/dotnet/sdk/issues/23498#issuecomment-1046937978