question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fable compiled as netcoreapp2.1 is failing

See original GitHub issue

I upgraded Fable 2 (dev2.0 branch) to netcore2.1. It was easy and it worked fine when running the tool locally as in this script. However, when distributing it as a Nuget package (version 2.0.0-alpha-008, commit reference), it fails with the following error:

~/d/f/s/r/src ❯❯❯ dotnet fable fable-splitter
Fable (2.0.0-alpha-008) daemon started on port 49195
CWD: /Users/alfonsogarciacaronunez/dev/fable/samples/react-todomvc
/Users/alfonsogarciacaronunez/dev/fable/samples/react-todomvc/node_modules/.bin/fable-splitter
fable: Compilation started at 01:23:27
CWD: /Users/alfonsogarciacaronunez/dev/fable/samples/react-todomvc/src
dotnet restore
  Restore completed in 23.93 ms for /Users/alfonsogarciacaronunez/dev/fable/samples/react-todomvc/src/React.TodoMVC.fsproj.
  Restore completed in 47.51 ms for /Users/alfonsogarciacaronunez/dev/fable/samples/react-todomvc/src/React.TodoMVC.fsproj.

Parsing ./React.TodoMVC.fsproj...
ERROR: Could not load file or assembly 'Fable.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

   at Fable.CLI.Agent.compile(Compiler com, Project project)
   at Fable.CLI.Agent.loop@223-7.Invoke(Unit unitVar)
   at Microsoft.FSharp.Control.AsyncBuilderImpl.callA@522.Invoke(AsyncParams`1 args)
ERROR: Could not load file or assembly 'Fable.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

Closing Fable daemon...
~/d/f/s/r/src ❯❯❯

Any ideas? @ncave @enricosada

Note the Fable.Core package still target netstandard2.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
enricosadacommented, Aug 31, 2018

Let me check tomorrow morning

From mobile

– Enrico Sada @enricosada


From: Alfonso Garcia-Caro notifications@github.com Sent: Friday, August 31, 2018 12:15:16 AM To: fable-compiler/Fable Cc: Enrico Sada; Mention Subject: Re: [fable-compiler/Fable] Fable compiled as netcoreapp2.1 is failing (#1413)

Hmm, I’m trying to follow this tutorial (basically it says you only need to add <PackAsTool>true</PackAsTool> to the .fsproj) but still no luck. Maybe @enricosadahttps://github.com/enricosada can help?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/fable-compiler/Fable/issues/1413#issuecomment-417484761, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAI_K30Fr_DrCRim9bdioo2Wzh3H5r3zks5uWGP0gaJpZM4UV4Tz.

1reaction
alfonsogarciacarocommented, Jun 2, 2018

Thanks for the tip @kunjee17! Hmm, IIRC I did set global.json to 2.1.300 when check but I’ll give it a new try just in case 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Netcore 2.1.1 release leads to app failing to run
App 2.1.1 was released 16 hours ago on nuget.org but only 158 downloads, and apparently I'm one of the downloaders.
Read more >
Fable.io from Scratch — Part 2
In part 1 we took a look at how to use Paket to install Fable.Core and Fable.Import.Browser. In part 2 we are going...
Read more >
https://raw.githubusercontent.com/dotnet/samples/m...
Memory package for netcoreapp2.0 is missing System. ... However after one day, it failed again with new debug message that the sending task...
Read more >
release-notes
BUGFIX: Paket pack failed when project contained Compile Update entries ... BUGFIX: netcoreapp2.0 packages are compatibile with netcoreapp2.1 ...
Read more >
Creating F# solutions in VSCode from scratch
1 Create a console app. The first thing you'll have to do is to create a root folder for your new project and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found