Generated load scripts not working with dotnet fsi
See original GitHub issueDescription
It seems that generated load scripts do not work well with dotnet fsi
.
Repro steps
- Check out this branch from Argu.
- Run
dotnet tool restore && dotnet paket restore
. - Open
dotnet fsi
- Type
#load ".paket/load/netcoreapp3.1/DocGeneration/docgeneration.group.fsx" ;;
Expected behavior
Should load dependencies in context.
Actual behavior
Complains about missing framework assemblies:
.paket\load\netcoreapp3.1\DocGeneration\docgeneration.group.fsx(42,1): error FS0078: Unable to find the file 'System.ComponentModel.Composition' in any of
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.1
C:\Program Files\dotnet\sdk\3.1.101\FSharp\../../../packs/Microsoft.NETCore.App.Ref\3.1.0\ref\netcoreapp3.1
C:\Users\eitsarpa\devel\public\Argu
C:\Program Files\dotnet\sdk\3.1.101\FSharp\
Known workarounds
Manually delete framework assemblies loaded from script.
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (12 by maintainers)
Top Results From Across the Web
Load dotnet project files in F# Interactive
For example, in Visual Studio, you can right-click the project and select either "Send References to F# Interactive" or "Generate Script File ...
Read more >F# Interactive (dotnet) Reference
Learn how F# Interactive (dotnet fsi) is used to run F# code interactively at the console or to execute F# scripts.
Read more >How can I run tests from the fsi REPL? - General
If you're using Paket, there is a generate-load-scripts command which will generate scripts that load all the dependencies.
Read more >NET Script APIs 🌞. with F# and dotnet fsi 🌴 | by jkone27
fsx app to load all the required assemblies to run aspnetcore in the interactive environment. If needed you can exclude this generated folder...
Read more >Sending references to FSI -- best way? : r/fsharp
According to paket, the runtime for generate-load-scripts is 1 second. Running the netcore version of paket on ubuntu.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m just here to say thank you! the way for scripting is free again
The filtering of framework assembly references doesn’t seem to work correctly: