2017-06-22 80 views
5

我遇到了Monodevelop问题。我使用LinuxMint Serena(18.1)和Monodevelop 7.0.1(build 24)。当尝试一个新的项目添加NuGet包,我得到的答案旁边:Nuget和“无法加载服务索引”

[nuget.org] Unable to load the service index for source https://api.nuget.org/v3/index.json. An error occurred while sending the request 
Error: SecureChannelFailure (Object reference not set an instance of an object) Object reference not set to an instance of an object 

我检查API的NuGet地址,是正常的,没有什么奇怪的链接。我试图从原始的Visual Studio项目中复制旧的包,但仍然是问题。

在此先感谢。

编辑: 尝试没有成功很多事情后,我用从旧的Visual Studio项目下载旧的NuGet包。我不知道是否能够实现这一目标,或者我是否将这个项目与Monodevelop for Windows一起解决了这个问题。

+0

我检查了两个链接,但没有解决我的问题。第一个与Visual Studio相关,我在Linux环境中使用Monodevelop。我改成了'http:// api.nuget.org/v3/index.json'并且保持了错误。 第二个甚至没有答案。 – Hagen

+0

看起来像是遇到了Mono v5的bug - https://bugzilla.xamarin.com/show_bug.cgi?id=57019解决方法是设置传统的TLS提供程序,然后从同一命令行运行flatpak export MONO_TLS_PROVIDER = legacy' –

回答

2

我在ubuntu(16.04)Monodevelop(7.0.1)中有同样的问题。我可以在我的浏览器中访问http://api.nuget.org/v3/index.json,但是当我在monodevelop中添加nuget包时,它会抛出异常,“无法加载源https://api.nuget.org/v3/index.json的服务索引”。 我通过检查更新程序来解决此问题,检查并安装所有软件更新。 你可以试试它。祝你好运!