首页 > 解决方案 > Jetbrains Rider 无法恢复私有 nuget 存储库

问题描述

我有一个私有的 NuGet 存储库,存储库身份验证是通过 VSTS 进行的,在 Windows 上它运行良好,Rider 请求身份验证并且一切正常,但在 Windows 上,显然它从 Visual Studio 获取信息。

在 Linux,Ubuntu 20.04.2.0 LTS 上,这没有发生,我添加了存储库 URL,Rider 没有请求身份验证,结果,NuGet 无法从存储库下载包

我在 Mac OSx 上遇到了同样的问题。

我遵循了社区提供的几个教程和提示,但没有一个有效,包括:https ://blog.jetbrains.com/dotnet/2018/03/06/credential-providers-private-nuget-feeds-rider-2018-1 -eap/

在 Rider 日志中,我发现了这个错误:

com.microsoft.alm.oauth2.useragent.AuthorizationException: Code: unknown_error Description: Exception in thread "main" org.eclipse.swt.SWTError: No more handles [Browser style SWT.MOZILLA and Java system property org.eclipse.swt.browser.DefaultType=mozilla are not supported with GTK 3 as XULRunner is not ported for GTK 3 yet]
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.browser.MozillaDelegate.<init>(Unknown Source)
at org.eclipse.swt.browser.Mozilla.create(Unknown Source)
at org.eclipse.swt.browser.Browser.<init>(Unknown Source)
at com.microsoft.alm.oauth2.useragent.StandardWidgetToolkit.<init>(StandardWidgetToolkit.java:44)
at com.microsoft.alm.oauth2.useragent.StandardWidgetToolkit.main(StandardWidgetToolkit.java:50)

at com.microsoft.alm.oauth2.useragent.AuthorizationResponse.fromString(AuthorizationResponse.java:109)
at com.microsoft.alm.oauth2.useragent.UserAgentImpl.encode(UserAgentImpl.java:195)
at com.microsoft.alm.oauth2.useragent.UserAgentImpl.requestAuthorizationCode(UserAgentImpl.java:152)
at com.microsoft.alm.auth.oauth.AzureAuthority.acquireAuthorizationCode(AzureAuthority.java:318)
at com.microsoft.alm.auth.oauth.AzureAuthority.acquireToken(AzureAuthority.java:236)
at com.microsoft.alm.auth.oauth.OAuth2Authenticator$1.doRetrieve(OAuth2Authenticator.java:245)
at com.microsoft.alm.auth.oauth.OAuth2Authenticator$1.doRetrieve(OAuth2Authenticator.java:168)
at com.microsoft.alm.auth.BaseAuthenticator$SecretRetriever.retrieve(BaseAuthenticator.java:268)
at com.microsoft.alm.auth.oauth.OAuth2Authenticator.getOAuth2TokenPair(OAuth2Authenticator.java:284)
at

所以,好吧,我尝试根据stackoverflow的一些问题更改Firefox的默认GTK VERSION,例如'https://stackoverflow.com/questions/37099810/java-xulrunner-error-in-eclipse-swt-in -ubuntu' 或者,安装 libwebkitgtk(我没有找到当前 linux 构建的包)

标签: rider

解决方案


推荐阅读