rider - 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 构建的包)
解决方案
推荐阅读
- firebase - Flutter firebase-admob 检查奖励视频是否正在加载
- sql - 转换特定的纪元时间
- javascript - 是否有适用于本地 IP 地址的代理服务器替代方案来绕过 CORS?
- python-2.7 - 从 Google Cloud Storage 存储分区进行 pip 安装
- azure - Azure 市场:是否可以在托管应用程序优惠中使用图像?
- java - 在类中使用 Piamge 处理(java)
- node.js - Apollo 客户端:未定义变量。收到状态码 400
- java - 如何在返回整个(修改后的)字符串的同时用 replaceAll() 替换捕获组?
- eclipse - STS-添加服务器-当我尝试添加 oracle weblogic 服务器时,下一步按钮被禁用
- c - 在 C 中通过 UDP 在结构中发送动态数组