Bug 35660 - Xbuild gives complication error
Summary: Xbuild gives complication error
Alias: None
Product: Runtime
Classification: Mono
Component: Tools ()
Version: unspecified
Hardware: Other Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-11-08 06:15 UTC by goldowl37
Modified: 2015-11-11 09:38 UTC (History)
3 users (show)

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 GitHub or Developer Community 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:

Description goldowl37 2015-11-08 06:15:14 UTC
I get an error when building the project (Seen at the top when I git clone it). P.S. How to use code blocks here?

root@vps184680:/home# git clone --recursive git@github.com:NiclasOlofsson/MiNET.git
Cloning into 'MiNET'...
Warning: Permanently added the RSA host key for IP address '' to the list of known hosts.
remote: Counting objects: 6391, done.
remote: Compressing objects: 100% (95/95), done.
remote: Total 6391 (delta 71), reused 0 (delta 0), pack-reused 6280
Receiving objects: 100% (6391/6391), 4.75 MiB | 1022.00 KiB/s, done.
Resolving deltas: 100% (4610/4610), done.
Checking connectivity... done.
-bash: : command not found
root@vps184680:/home# cd MiNET
root@vps184680:/home/MiNET# cd src
root@vps184680:/home/MiNET/src# cd MiNET
root@vps184680:/home/MiNET/src/MiNET# ls
MiNET          MiNET.ServiceKiller    MiNET.sln.GhostDoc.xml  TestPlugin
MiNET.Client   MiNET.sln              MiNET.Test
MiNET.Service  MiNET.sln.DotSettings  packages
-bash: : command not found
root@vps184680:/home/MiNET/src/MiNET# xbuild MiNET.sln
XBuild Engine Version 12.0
Mono, Version
Copyright (C) 2005-2013 Various Mono authors

Build started 08/11/2015 12:06:46.
Project "/home/MiNET/src/MiNET/MiNET.sln" (default target(s)):
        Target ValidateSolutionConfiguration:
                Building solution configuration "Debug|Any CPU".
        Target Build:
                Project "/home/MiNET/src/MiNET/MiNET/MiNET.csproj" (default target(s)):
                        Target RestorePackages:
                                Executing: mono --runtime=v4.0.30319 "/home/MiNET/src/MiNET/.nuget/NuGet.exe" install "/home/MiNET/src/MiNET/MiNET/packages.config" -source ""   -RequireConsent -solutionDir "/home/MiNET/src/MiNET/"
                                Restoring NuGet packages...
                                To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'.
                                WARNING: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure
                                Unable to find version '0.6.3' of package 'fNbt'.
/home/MiNET/src/MiNET/.nuget/NuGet.targets: error : Command 'mono --runtime=v4.0.30319 "/home/MiNET/src/MiNET/.nuget/NuGet.exe" install "/home/MiNET/src/MiNET/MiNET/packages.config" -source ""   -RequireConsent -solutionDir "/home/MiNET/src/MiNET/"' exited with code: 1.
                        Task "Exec" execution -- FAILED
                        Done building target "RestorePackages" in project "/home/MiNET/src/MiNET/MiNET/MiNET.csproj".-- FAILED
                Done building project "/home/MiNET/src/MiNET/MiNET/MiNET.csproj".-- FAILED
        Task "MSBuild" execution -- FAILED
        Done building target "Build" in project "/home/MiNET/src/MiNET/MiNET.sln".-- FAILED
Done building project "/home/MiNET/src/MiNET/MiNET.sln".-- FAILED


/home/MiNET/src/MiNET/MiNET.sln (default targets) ->
(Build target) ->
/home/MiNET/src/MiNET/MiNET/MiNET.csproj (default targets) ->
/home/MiNET/src/MiNET/.nuget/NuGet.targets (RestorePackages target) ->

        /home/MiNET/src/MiNET/.nuget/NuGet.targets: error : Command 'mono --runtime=v4.0.30319 "/home/MiNET/src/MiNET/.nuget/NuGet.exe" install "/home/MiNET/src/MiNET/MiNET/packages.config" -source ""   -RequireConsent -solutionDir "/home/MiNET/src/MiNET/"' exited with code: 1.

         0 Warning(s)
         1 Error(s)

Is this a project error or mono? <--

Time Elapsed 00:00:04.9103390
Comment 1 goldowl37 2015-11-08 06:16:24 UTC
I don't think this is a project error because it builds fine on Travis (Or circle? I can't remember).
Comment 2 Matt Ward 2015-11-11 09:38:08 UTC
The error is being returned from nuget.exe since it is failing to restore the NuGet package due to an SSL error. It is reported in the xbuild output:

 WARNING: Error getting response stream (Write:The authentication or decryption has failed.): SendFailure

You can normally fix this by running:

mozroots --import --sync

If that does not fix the problem then there are some more suggestions in this StackOverflow post: