repl-legacy
repl-legacy copied to clipboard
Generate assembly metadata in build script
The metadata for Fable.Core.dll is outdated, we should generate it automatically with every build (and Fable.Import.Browser.dll).
The "Generate.Metadata" target does that, but it's referencing Fable.Core 1.3.*
<PackageReference Include="Fable.Core" Version="1.3.*" />
<PackageReference Include="Fable.Import.Browser" Version="*" />
Let me know if you want that changed to, say, 1.* or just * for both.
Using 1.* could be a good idea, though now that I started 2.0 development, maybe there's no Fable 1.4 after all ;)
@alfonsogarciacaro I updated the references, so just use the netstandard2.0 binares, performance should be more or less the same.
@ncave I've run the Generated.Metadata target (with a fresh clone of your FCS fork). netstandard assemblies are working fine but for some reason I cannot use Fable.Core.jsOptions in the REPL. If it's using the latest Fable.Core that helper should be available. Any hint?
@alfonsogarciacaro You can open and examine the dll with dnSpy to make sure it's there.
@alfonsogarciacaro Looks like it has Fable.Core.JsInterop.jsOptions, but not Fable.Core.jsOptions
Slap me in the face please.

Actually, Fable.Core.JsInterop was open but the sample was using jsOption (missing s at the end). It works now, sorry for the hustle!
I'm like a mogwai, I shouldn't code after midnight...