You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been investigating writing a set of Fable rules for Bazel. In this use-case, we don't have any fsproj files - just a dependency graph of source-files and NuGet packages (not in the usual packages folder).
One approach to compiling these with Fable is to take this graph, generate fsproj files for each target and then run Fable on that.
However, this is quite inefficient (and indirect), since we are effectively:
Taking a graph of "cracked" projects
Writing project files
Giving the project files to Fable to crack
Compiling the code
So, I was wondering if Fable should provide a CLI for building fs files directly?
The text was updated successfully, but these errors were encountered:
@njlr If you have the list of source files and nuget packages, generating a (temp) project file should be trivial, no? At least no more difficult than providing the same information via parameters?
The main reason we're cracking a F# .fsproj is to use MSBuild to get all the referenced .NET assemblies, which otherwise will have to be supplied via parameters somehow. I'm not saying it's not possible, we can technically use a fixed list as we do for the Fable REPL, but that's somewhat brittle and is mainly for Fable variations targeting platforms that do not support MSBuild or have no .NET installed at all (e.g. a browser).
TL;DR I don't think using .fsproj will be inefficient, now that Fable 4 is using design-time builds for project cracking, which are much faster.
I have been investigating writing a set of Fable rules for Bazel. In this use-case, we don't have any
fsproj
files - just a dependency graph of source-files and NuGet packages (not in the usual packages folder).One approach to compiling these with Fable is to take this graph, generate
fsproj
files for each target and then run Fable on that.However, this is quite inefficient (and indirect), since we are effectively:
So, I was wondering if Fable should provide a CLI for building
fs
files directly?The text was updated successfully, but these errors were encountered: