New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
haf opened this Issue Jan 10, 2018 · 2 comments

Comments

Projects
None yet
1 participant
@haf
Member

haf commented Jan 10, 2018

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

@haf haf changed the title from paket install adds in paket.targets, that breaks .net core restore to "Exited with code 1" is a bad restore error message Jan 10, 2018

@haf

This comment has been minimized.

Show comment
Hide comment
@haf

haf Jan 10, 2018

Member

Reason: <TargetFramework> vs <TargetFrameworks>?

Member

haf commented Jan 10, 2018

Reason: <TargetFramework> vs <TargetFrameworks>?

@haf

This comment has been minimized.

Show comment
Hide comment
@haf

haf Jan 10, 2018

Member

It's the above problem, with the -s which caused the unexpected output. If you have already considered making this error message better, but decided against, please close this issue.

Member

haf commented Jan 10, 2018

It's the above problem, with the -s which caused the unexpected output. If you have already considered making this error message better, but decided against, please close this issue.

@forki forki closed this in e561d0b Jan 10, 2018

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