Sitelet https://github.com/fsprojects/Paket/issues/2970
Skip to content

"Exited with code 1" is a bad restore error message #2970

Description

@haf

Trying to use .Net Core with Http.fs now.

Input:

<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <AssemblyName>HttpFs</AssemblyName>
    <PackageId>HttpFs</PackageId>
    <Version>5.0</Version>
    <TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="..\paket-files\haf\YoLo\YoLo.fs">
      <Paket>True</Paket>
      <Link>paket-files/YoLo.fs</Link>
    </Compile>
    <Compile Include="..\paket-files\logary\logary\src\Logary.Facade\Facade.fs">
      <Paket>True</Paket>
      <Link>paket-files/Facade.fs</Link>
    </Compile>
    <Compile Include="AssemblyInfo.fs" />
    <Compile Include="HttpFs.fs" />
    <PackageReference Include="FSharp.Core" Version="4.1.18" />
  </ItemGroup>
  <ItemGroup Condition="'$(TargetFramework)'!='net461'">
    <PackageReference Include="System.Diagnostics.FileVersionInfo" Version="4.3.0" />
  </ItemGroup>
  <Import Project="..\.paket\Paket.Restore.targets" />
</Project>

Output

Finished Target: Clean
Starting Target: AssemblyInfo (==> Clean)
Created AssemblyInfo file "HttpFs/AssemblyInfo.fs".
Finished Target: AssemblyInfo
Starting Target: PaketFiles (==> AssemblyInfo)
Finished Target: PaketFiles
Starting Target: ProjectVersion (==> PaketFiles)
Finished Target: ProjectVersion
Starting Target: BuildTest (==> ProjectVersion)
dotnet "build" "HttpFs.UnitTests/HttpFs.UnitTests.fsproj" --configuration Release --framework netcoreapp2.0
Microsoft (R) Build Engine version 15.5.179.9764 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  f156589e866cf26dc74ebae4deb2682472e2dc51
  f156589e866cf26dc74ebae4deb2682472e2dc51
  Paket version 5.129.1
  Performance:
   - Runtime: 2 seconds
  Paket failed with
  -> Extracting platforms from path 'netcoreapp2.0;net461' failed
/Users/h/dev/logibit/Http.fs/.paket/Paket.Restore.targets(108,5): error MSB3073: The command "/Library/Frameworks/Mono.framework/Commands/mono --runtime=v4.0.30319 "/Users/h/dev/logibit/Http.fs/.paket/paket.exe" restore --project "/Users/h/dev/logibit/Http.fs/HttpFs.UnitTests/HttpFs.UnitTests.fsproj"" exited with code 1. [/Users/h/dev/logibit/Http.fs/HttpFs.UnitTests/HttpFs.UnitTests.fsproj]

Compiles if I remove paket restore. I'm following @AnthonyLloyd's work here haf/expecto@fa2ead7

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions