Update With Matt Ward, I traced this to a bad configuration file. ~ / .Config / NuGet / NuGet.Config works for me
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://www.nuget.org/api/v2/" protocolVersion="2" />
</packageSources>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
I can do the following without problems:
/opt/mono/mono-5.2.0.196-tarball/bin/mono ~/nuget.exe install -version 2.6.4 nunit
However, when I try to compile fsharp on the same Mono installation, I get the following error. This is in the fsharp4 branch. What can I do wrong, please? Many thanks.
"/dir/src/fsharp/FSharp.Build-proto/FSharp.Build-proto.fsproj" ( () ): Target CallFsSrGen: "obj/proto/./" /dir/src/fsharp/FSharp.Build-proto/../../../lib/bootstrap/4.0/fssrgen.exe : /dir/src/fsharp/FSharp.Build/FSBuild.txt obj/proto/./FSBuild.fs FSBuild.resx Target BeforeBuild: : --ru - =. packages.config -PackagesDirectory packages "2.6.4" "NUnit". "2.6.4" 'NUnit.Runners'./dir/src/FSharpSource.targets: : Command 'mono --runtime = v4.0.30319 /dir/src/fsharp/FSharp.Build-proto/../../../.nuget/NuGet.exe restore packages.config -PackagesDirectory ' : 1. "Exec" - "BeforeBuild"