Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NuGet Packages for Visual Studio 2012 will not Restore in MonoDevelop 5.0.1

I'm relatively new to managing packages using NuGet. I used Visual Studio 2008-2010 for a couple of years, and used NuGet a little, but I'm far from an expert.

I have a Visual Studio 2012 program that I did not write and I'm trying to get the program to compile under MonoDevelop 5.0.1. When I load the project into MonoDevelop, the Package Console reads:

WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
Unable to find version '1.4.0.56' of package 'MSBuildTasks'.
Unable to find version '2.0.0.2000' of package 'NLog'.
Unable to find version '1.2.0' of package 'NodaTime'.
Unable to find version '2.0.11' of package 'Npgsql'.
Unable to find version '2.0.0.480' of package 'protobuf-net'.
Unable to find version '2.8.4' of package 'RabbitMQ.Client'.
Unable to find version '0.15.0.0' of package 'MailKit'.
Unable to find version '0.36.0.0' of package 'MimeKit'.
Unable to find version '4.0.10827' of package 'Moq'.
Unable to find version '1.2.2' of package 'elmah.corelibrary'.
Unable to find version '5.0.6' of package 'Newtonsoft.Json'.

The application was terminated by a signal: SIGHUP

I've tried using the package manager to re-add these packages to the project, then remove the ones MonoDevelop cannot find, but I cannot get the project to recognize the packages. I've seen and read several threads on the topic some mentioning an xbuild feature that I cannot find anywhere, but those threads don't clearly address the problem, and I've found none that provide a comprehensive solution.

If there's anyone who has a comprehensive solution to this problem, please post it. I'm sure a comprehensive solution would be very helpful to a lot of people trying to convert Visual Studio projects to MonoDevelop.

like image 814
Darin Peterson Avatar asked Feb 12 '23 00:02

Darin Peterson


1 Answers

Try running the following:

mozroots --import --sync

That should fix the SendFailure error.

like image 181
Matt Ward Avatar answered May 05 '23 04:05

Matt Ward