Open njlr opened 1 year ago
I think having a separate provider with the compilation parameters would not be a bad idea. It could also be used in e.g. a rule that generates csproj/fsproj files. Maybe a DotnetCompileInfo
? I'm currently on paternal leave so I don't have much time for contributions at the moment but I could review a PR if you want to contribute this addition?
This PR is different but related - it exposes the files inside Nuget packages: https://github.com/bazelbuild/rules_dotnet/pull/316
I have been investigating the feasibility of Fable rules (https://github.com/bazelbuild/rules_dotnet/issues/236) that can consume
fsharp_library
targets asdeps
.The motivation for this is that the user will not have to define their library targets twice to support .NET and Fable.
Fable requires the source-files (
.fs
,.fsi
) of all dependencies to compile. However, this information does not appear to be exposed by any provider onfsharp_library
.Is it possible to get the sources-files of and
fsharp_library
?If not, could this provider be added? Perhaps
FSharpInfo
?