Skip to content

feature: generate .fsx / .csx include scripts #1593

@smoothdeveloper

Description

@smoothdeveloper

I noticed paket has excellent support for transitive dependencies.

When I'm doing F# scripting, I rely on assemblies located in packages, but I always have to reference explicitly the transitive dependencies, at least when public members I'm trying to use expose types from those.

It would be great if paket could generate (maybe an option in paket.dependencies) script files for including the packages' assemblies with it's transitive dependencies.

Here is a simple example

#r "packages/MBrace.Thespian/lib/net45/MBrace.Thespian.dll"
open MBrace.Thespian. // autocomplete at this point says I need to reference some other assembly

When, I do that, I have to add references to MBrace.Runtime, etc.

Instead, I'd like to do this:

#load "packages/include-scripts/MBrace.Thespian.fsx"

and be ready for happy scripting experience, even when transitive dependencies changes, etc.

It also simplifies a lot simple references as I don't have to lookup the exact location of assemblies.

To play nice with C# .csx users, identical .csx files could also be generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions