Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FSI fails to load generated load script file #3353

Open
chinwobble opened this issue Sep 8, 2018 · 2 comments
Open

FSI fails to load generated load script file #3353

chinwobble opened this issue Sep 8, 2018 · 2 comments

Comments

@chinwobble
Copy link

Description

FSI fails to load generated load script file

Repro steps

Run the following commands with forge on W10 and paket 5.177.1

  1. forge paket init

  2. forge paket add FSharp.Control.FusionTasks

  3. forge paket generate-load-scripts

  4. run the following fsx file

#load @".paket\load\netcoreapp2.1\main.group.fsx"

Expected behavior

Should be able to load main package script

Actual behavior

Get the following output when trying to load the script

main.group.fsx(27,1): error FS0074: The type referenced through 'System.Threading.Tasks.ValueTask' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Threading.Tasks.Extensions'.

Known workarounds

none

@chinwobble chinwobble changed the title FSI fails to load generated load script ifle FSI fails to load generated load script file Sep 8, 2018
@smoothdeveloper
Copy link
Contributor

Thanks for the report @chinwobble, this may be related to dotnet/fsharp#3309

If you can, would you try loading this way:

#load @".paket\load\net462\main.group.fsx"

FSI is only supported on full .net framework AFAIK, if you need to reference netstandard binaries, you'll need to use work around detailled in the visualfsharp issue I mentioned above.

@matthid
Copy link
Member

matthid commented Sep 8, 2018

Yes @smoothdeveloper is correct but just to confirm loading a netcoreapp load script into full framework fsi is never a safe operation, even when visualfsharp fixes the current problems. As indicated you need to generate and use the full framework load script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants