Bug 21655 - nuget restore error
Summary: nuget restore error
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: NuGet ()
Version: Trunk
Hardware: PC Linux
: --- normal
Target Milestone: master
Assignee: Matt Ward
URL:
Depends on:
Blocks:
 
Reported: 2014-07-29 04:53 UTC by xkaying
Modified: 2014-07-29 10:59 UTC (History)
0 users

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description xkaying 2014-07-29 04:53:16 UTC
when i complied monodevelop  for myself,it won't restore packeages.
i get this source(master branch) from the github.
it report like this:
/////////////////////////////////////////////////////////
Project "/opt/monodevelop/main/src/addins/AspNet/MonoDevelop.AspNet.csproj" (default target(s)):
			Target BeforeBuild:
				Executing: mono ../../../external/nuget-binary/NuGet.exe restore -SolutionDirectory ../../..
				Warning: Error: SendFailure (Error writing headers)
				Warning: Error: SendFailure (Error writing headers)
				Warning: Error: SendFailure (Error writing headers)
				Unable to find version '4.0.30506' of package 'Microsoft.AspNet.Mvc'.
				Unable to find version '2.0.30506' of package 'Microsoft.AspNet.WebPages'.
				Unable to find version '2.0.30506' of package 'Microsoft.AspNet.Razor'.
/opt/monodevelop/main/src/addins/AspNet/MonoDevelop.AspNet.csproj: error : Command 'mono ../../../external/nuget-binary/NuGet.exe restore -SolutionDirectory ../../..' exited with code: 1.
			Task "Exec" execution -- FAILED
			Done building target "BeforeBuild" in project "/opt/monodevelop/main/src/addins/AspNet/MonoDevelop.AspNet.csproj".-- FAILED
		Done building project "/opt/monodevelop/main/src/addins/AspNet/MonoDevelop.AspNet.csproj".-- FAILED
	Task "MSBuild" execution -- FAILED
	Done building target "Build" in project "/opt/monodevelop/main/Main.sln".-- FAILED
Done building project "/opt/monodevelop/main/Main.sln".-- FAILED

Build FAILED.

Warnings:

/opt/monodevelop/main/Main.sln (default targets) ->
(Build target) ->

	/opt/monodevelop/main/Main.sln:  warning : The project configuration for project 'po' corresponding to the solution configuration 'DebugGnome|Any CPU' was not found.

Errors:

/opt/monodevelop/main/Main.sln (default targets) ->
(Build target) ->
/opt/monodevelop/main/src/addins/AspNet/MonoDevelop.AspNet.csproj (default targets) ->
(BeforeBuild target) ->

	/opt/monodevelop/main/src/addins/AspNet/MonoDevelop.AspNet.csproj: error : Command 'mono ../../../external/nuget-binary/NuGet.exe restore -SolutionDirectory ../../..' exited with code: 1.

	 1 Warning(s)
	 1 Error(s)
Comment 1 xkaying 2014-07-29 05:00:07 UTC
i can find these packages in nuget.org.
and it could restore these packets right in new version.but it doesn't restore the config version.
when i change version to newer.it catch other more problems;
Comment 2 Matt Ward 2014-07-29 05:04:14 UTC
Looks like it might be certificate problem due to the "Error: SendFailure
(Error writing headers)" message being displayed.

Try running the following on your machine:

mozroots --import --sync
Comment 3 xkaying 2014-07-29 10:59:48 UTC
thank you.
it will be continue now.